/* style/blog.css */
.page-blog {
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
  background-color: #FFFFFF; /* Light background as per body background color */
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-blog__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-blog__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FCBC45; /* Login button color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-blog__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  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: #FFD700;
}

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

.page-blog__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-blog__latest-news-section,
.page-blog__categories-section,
.page-blog__about-blog-section,
.page-blog__faq-section {
  padding: 60px 0;
}

.page-blog__latest-news-section {
  background-color: #f8f8f8;
}

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

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

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

.page-blog__article-image-wrapper,
.page-blog__category-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

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

.page-blog__article-content,
.page-blog__category-content {
  padding: 25px;
}

.page-blog__article-title,
.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-blog__article-title a,
.page-blog__category-title a {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__article-description,
.page-blog__category-description {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 20px;
}

.page-blog__article-button {
  display: inline-block;
  background-color: #000000;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__article-button:hover {
  background-color: #333333;
}

.page-blog__category-image {
  border-bottom: 2px solid #FCBC45;
}

.page-blog__about-blog-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog__paragraph {
  margin-bottom: 20px;
  font-size: 1.05em;
  line-height: 1.8;
}

.page-blog__main-cta-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 30px;
  transition: background-color 0.3s ease;
}

.page-blog__main-cta-button:hover {
  background-color: #FFD700;
}

.page-blog__faq-section {
  background-color: #f0f0f0;
}

.page-blog__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
}

.page-blog__faq-answer {
  font-size: 1em;
  color: #555555;
}

/* Responsive adjustments */
@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: 2em;
  }
}

@media (max-width: 768px) {
  .page-blog {
    padding-top: var(--header-offset, 80px); /* Adjust for smaller header on mobile */
  }
  .page-blog__hero-section {
    padding: 40px 15px;
  }
  .page-blog__hero-title {
    font-size: 2.5em;
  }
  .page-blog__hero-description {
    font-size: 1.1em;
  }
  .page-blog__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }
  .page-blog__section-title {
    font-size: 1.8em;
  }
  .page-blog__section-intro {
    margin-bottom: 30px;
  }
  .page-blog__article-grid,
  .page-blog__category-grid {
    grid-template-columns: 1fr;
  }
  .page-blog__article-image, .page-blog__category-image {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and don't overflow */
  }
  .page-blog__article-card, .page-blog__category-card {
    margin-bottom: 20px;
  }
  .page-blog__main-cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  /* Content area image rules for mobile */
  .page-blog__latest-news-section img,
  .page-blog__categories-section img,
  .page-blog__about-blog-section img,
  .page-blog__faq-section img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-blog__hero-title {
    font-size: 2em;
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__section-title {
    font-size: 1.6em;
  }
  .page-blog__article-content,
  .page-blog__category-content {
    padding: 15px;
  }
  .page-blog__article-title,
  .page-blog__category-title {
    font-size: 1.3em;
  }
  .page-blog__faq-question {
    font-size: 1.1em;
  }
}