.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #f9f9f9;
  line-height: 1.6;
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #26A9E0; /* Fallback for image loading */
}

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

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4); /* Overlay for text readability */
  border-radius: 10px;
  transform: translateY(50px);
  opacity: 0;
  animation: fadeInDown 0.8s forwards 0.3s;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-blog__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

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

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

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

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

.page-blog__section-description--light {
  color: #e0e0e0;
}

.page-blog__posts-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-blog__post-card {
  background: #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;
  height: 100%;
}

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

.page-blog__post-link-wrapper {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
  line-height: 1.3;
}

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

.page-blog__post-date {
  font-size: 0.85em;
  color: #888888;
  margin-top: auto;
  margin-bottom: 10px;
  display: block;
}

.page-blog__read-more {
  color: #26A9E0;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
}

.page-blog__post-card:hover .page-blog__read-more {
  color: #1a7bb7;
}

.page-blog__arrow {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__arrow {
  transform: translateX(5px);
}

.page-blog__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

.page-blog__btn-primary:hover {
  background: #1a7bb7;
  border-color: #1a7bb7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.4);
}

.page-blog__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__btn-secondary:hover {
  background: #f0f8ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

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

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-blog__category-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: #FFFFFF;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__category-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-blog__category-desc {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-blog__cta-section {
  padding: 80px 0;
  background-color: #f0f0f0;
  text-align: center;
}

.page-blog__final-cta {
  padding: 80px 0;
  background-color: #26A9E0;
  text-align: center;
}

/* FAQ Styles */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  color: #333333;
}
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: #26A9E0;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  font-size: 1em;
  color: #555555;
}

/* General image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.8em;
  }
  .page-blog__section-title {
    font-size: 2em;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__hero-content {
    padding: 60px 20px;
  }
}

@media (max-width: 768px) {
  /* Top section / Hero section adjustments */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
  }
  .page-blog__hero-content {
    padding: 40px 15px;
    animation: none; /* Disable animation for mobile to prevent layout shift */
    transform: translateY(0);
    opacity: 1;
  }
  .page-blog__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-blog__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* General content sections */
  .page-blog__posts-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__final-cta {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* Blog posts grid */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 1.2em;
  }
  .page-blog__post-excerpt {
    font-size: 0.9em;
  }
  .page-blog__post-date {
    font-size: 0.8em;
  }

  /* Categories grid */
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 30px;
  }
  .page-blog__category-card {
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.1em;
  }
  .page-blog__category-desc {
    font-size: 0.85em;
  }

  /* Buttons responsiveness */
  .page-blog__cta-button,
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 1em;
  }
  .page-blog__view-all-button-wrapper,
  .page-blog__hero-content,
  .page-blog__final-cta .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__view-all-button-wrapper .page-blog__cta-button {
    margin: 0 auto;
  }
  .page-blog__hero-content .page-blog__cta-button {
    margin: 0 auto;
  }
  .page-blog__final-cta .page-blog__cta-button {
    margin: 0 auto;
  }

  /* Image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* FAQ Styles Mobile */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
    font-size: 1em;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.95em;
  }
}