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

.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  position: relative;
  overflow: hidden;
}

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

.page-blog__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

.page-blog__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #ffffff;
}

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

.page-blog__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
}

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

.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #F5F7FA;
  color: #333333;
}

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

.page-blog__section-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  margin-bottom: 60px;
}

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

.page-blog__post-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;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__post-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

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

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

.page-blog__post-title a:hover {
  text-decoration: underline;
}

.page-blog__post-excerpt {
  color: #666666;
  font-size: 0.95em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__post-date {
  font-size: 0.85em;
  color: #999999;
  margin-bottom: 15px;
}

.page-blog__read-more {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

.page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__view-all {
  text-align: center;
  margin-top: 60px;
}

.page-blog__categories {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-blog__categories .page-blog__section-title,
.page-blog__categories .page-blog__section-description {
  color: #ffffff;
}

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

.page-blog__category-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__category-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-blog__category-item .page-blog__read-more {
  color: #FF5A4F;
  text-decoration: none;
  font-weight: bold;
}

.page-blog__category-item .page-blog__read-more:hover {
  text-decoration: underline;
}

.page-blog__featured-article {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-blog__featured-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-blog__featured-text {
  flex: 2;
}

.page-blog__featured-text p {
  margin-bottom: 1em;
  color: #333333;
}

.page-blog__featured-text strong {
  color: #E53935;
}

.page-blog__featured-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-blog__featured-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__faq-section {
  padding: 80px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-blog__faq-section .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 40px;
}

.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1em;
  list-style: none;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-blog__faq-answer p {
  margin-bottom: 1em;
}

.page-blog__faq-answer a {
  color: #FF5A4F;
  text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__featured-content {
    flex-direction: column;
    align-items: center;
  }
  .page-blog__featured-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is small decoration */
  }

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

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

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

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

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

  .page-blog__latest-posts,
  .page-blog__categories,
  .page-blog__featured-article,
  .page-blog__faq-section {
    padding: 50px 0;
  }

  .page-blog__post-card,
  .page-blog__category-item {
    margin: 0 15px;
  }

  .page-blog__post-image-wrapper {
    height: 180px;
  }

  .page-blog__post-title {
    font-size: 1.2em;
  }

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile responsive for images */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__post-image-wrapper,
  .page-blog__featured-image-wrapper,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-blog__cta-button,
  .page-blog__read-more {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__view-all,
  .page-blog__cta-button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }
}