.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background: #F5F7FA;
}

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

.page-blog__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

.page-blog__text-block--light {
  color: #f0f0f0;
}

.page-blog__text-block .highlight {
  font-weight: bold;
  color: #E53935;
}

.page-blog__hero-section {
  padding-top: 10px; /* Approximately 10px top padding as per rules */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 810px; /* Fixed max height for the hero image area */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__hero-content {
  position: relative;
  background: #ffffff;
  padding: 40px 20px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  margin-top: -80px; /* Overlap with image slightly */
  z-index: 10;
}

.page-blog__main-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 800;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #333333;
  margin-bottom: 30px;
  text-align: center;
}

.page-blog__hero-cta-buttons,
.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-blog__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-blog__intro-section,
.page-blog__featured-categories,
.page-blog__latest-posts,
.page-blog__why-choose-us,
.page-blog__faq-section,
.page-blog__cta-bottom {
  padding: 60px 0;
}

.page-blog__featured-categories {
  background: #F5F7FA;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__category-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 200px; /* Minimum size requirement */
}

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

.page-blog__category-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Minimum size requirement */
}

.page-blog__category-title {
  font-size: 22px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__category-description {
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__btn-link {
  display: inline-block;
  color: #FF5A4F;
  font-weight: 600;
  text-decoration: none;
  position: relative;
}

.page-blog__btn-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #FF5A4F;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__btn-link:hover::after {
  transform: scaleX(1);
}

.page-blog__latest-posts {
  background: #F5F7FA;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-blog__post-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

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

.page-blog__post-title {
  font-size: 20px;
  font-weight: 700;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-blog__post-meta {
  font-size: 14px;
  color: #999999;
  margin-bottom: 15px;
}

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

.page-blog__read-more {
  display: inline-block;
  color: #FF5A4F;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  align-self: flex-start;
}

.page-blog__read-more::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: #FF5A4F;
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.page-blog__read-more:hover::after {
  transform: scaleX(1);
}

.page-blog__view-all-posts {
  text-align: center;
}

.page-blog__why-choose-us {
  background: #E53935;
  color: #ffffff;
  text-align: center;
}

.page-blog__why-choose-us .page-blog__text-block {
  color: #f0f0f0;
}

.page-blog__why-choose-us .page-blog__text-block .highlight {
  color: #ffffff;
}

.page-blog__why-choose-us .page-blog__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border-color: #ffffff;
}

.page-blog__why-choose-us .page-blog__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  border-color: #FF5A4F;
}

/* FAQ Styles */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}
details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: #f5f5f5;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-blog__faq-answer p {
  color: #333333;
  font-size: 15px;
  line-height: 1.6;
}

.page-blog__faq-answer .highlight {
  font-weight: bold;
  color: #E53935;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px;
  }
  .page-blog__section-title {
    font-size: 28px;
  }
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 4vw, 40px);
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-blog__category-title,
  .page-blog__post-title {
    font-size: 20px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-blog__hero-image {
    max-height: 600px;
  }
  .page-blog__post-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px; /* Consistent top padding */
  }
  .page-blog__hero-image-wrapper {
    max-height: 300px; /* Adjust height for mobile */
  }
  .page-blog__hero-image {
    object-fit: contain; /* Ensure image fits without cropping too much */
    max-height: 250px;
  }
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    border-radius: 8px;
  }
  .page-blog__main-title {
    font-size: clamp(22px, 6vw, 32px);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-blog__hero-cta-buttons,
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 15px;
  }
  .page-blog__categories-grid,
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__category-card,
  .page-blog__post-card {
    padding: 20px;
  }
  .page-blog__category-image,
  .page-blog__post-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure min size is met */
  }
  .page-blog__post-image {
    height: auto; /* Allow auto height for mobile */
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 14px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  .page-blog__faq-answer p {
    font-size: 14px;
  }
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-blog__intro-section .page-blog__container,
  .page-blog__featured-categories .page-blog__container,
  .page-blog__latest-posts .page-blog__container,
  .page-blog__why-choose-us .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__cta-bottom .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}