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

.page-blog__hero-section {
  background-color: #f8f9fa;
  padding: 0;
  text-align: center;
  position: relative;
  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-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  max-width: 80%;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 10px;
}

.page-blog__hero-title {
  font-size: 3em;
  margin-bottom: 15px;
  color: #ffc107;
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #ffc107;
  color: #000000;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__hero-button:hover {
  background-color: #e0a800;
}

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

.page-blog__section-title {
  font-size: 2.5em;
  color: #007bff;
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
}

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

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

.page-blog__category-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid #eeeeee;
}

.page-blog__card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
}

.page-blog__card-title a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #0056b3;
}

.page-blog__card-description {
  padding: 0 15px 20px;
  color: #555555;
}

.page-blog__card-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-blog__card-button:hover {
  background-color: #0056b3;
}

.page-blog__featured-articles {
  padding: 60px 0;
}

.page-blog__article-item {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-blog__article-item:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-blog__article-content {
  width: 60%;
  padding: 30px;
}

.page-blog__article-title {
  font-size: 1.8em;
  margin-bottom: 15px;
}

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

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

.page-blog__article-excerpt {
  color: #555555;
  margin-bottom: 20px;
}

.page-blog__article-link {
  display: inline-block;
  color: #ffc107;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

.page-blog__full-content {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-blog__full-content h2,
.page-blog__full-content h3 {
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__full-content h2 {
  font-size: 2.2em;
}

.page-blog__full-content h3 {
  font-size: 1.8em;
  color: #ffc107;
}

.page-blog__full-content p {
  margin-bottom: 15px;
  color: #333333;
}

.page-blog__full-content strong {
  color: #007bff;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #007bff;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.page-blog__cta-button:hover {
  background-color: #0056b3;
}

.page-blog__cta-section {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-blog__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
}

.page-blog__cta-buttons .page-blog__cta-button {
  margin: 0 10px;
  background-color: #ffc107;
  color: #000000;
}

.page-blog__cta-buttons .page-blog__cta-button:hover {
  background-color: #e0a800;
}

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

.page-blog__cta-buttons .page-blog__cta-button--secondary:hover {
  background-color: #ffc107;
  color: #000000;
}

/* Ensure content area images are not small */
.page-blog img {
  min-width: 200px;
  min-height: 200px;
  /* Other styles like max-width: 100%; height: auto; will be in media queries for responsiveness */
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog__hero-title {
    font-size: 2em;
  }

  .page-blog__hero-description {
    font-size: 1em;
  }

  .page-blog__hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .page-blog__section-title {
    font-size: 2em;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }

  .page-blog__article-item {
    flex-direction: column;
  }

  .page-blog__article-item:nth-child(even) {
    flex-direction: column;
  }

  .page-blog__article-image,
  .page-blog__article-content {
    width: 100%;
  }

  .page-blog__article-image {
    height: 250px;
  }

  .page-blog__cta-title {
    font-size: 2em;
  }

  .page-blog__cta-description {
    font-size: 1em;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__cta-buttons .page-blog__cta-button {
    margin: 0;
  }

  /* Critical: Prevent horizontal scroll on mobile for all images in content area */
  .page-blog img {
    max-width: 100%;
    height: auto;
  }

  .page-blog {
    overflow-x: hidden;
  }
}