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

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

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

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

.page-blog__section-subtitle {
  font-size: 1.2em;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__section-subtitle--light {
  color: #f0f0f0;
}

.page-blog p {
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-blog a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  font-size: 1.1em;
  border: 2px solid transparent;
}

.page-blog__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border-color: #26A9E0;
}

.page-blog__btn-primary:hover {
  background-color: #1a7bbd;
  border-color: #1a7bbd;
}

.page-blog__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1a7bbd;
  border-color: #1a7bbd;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  background-color: #f8f8f8;
  overflow: hidden;
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__hero-image-wrapper {
  max-height: 500px;
  overflow: hidden;
}

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

.page-blog__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for H1 */
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-blog__hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-blog__hero-cta {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* Introduction Section */
.page-blog__introduction-section {
  padding: 40px 0;
  background-color: #FFFFFF;
}

.page-blog__introduction-section p {
  text-align: justify;
}

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

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

.page-blog__category-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  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__category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__category-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog__category-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__category-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #26A9E0;
  padding: 15px 20px 10px;
  margin: 0;
}

.page-blog__category-description {
  font-size: 1em;
  color: #666666;
  padding: 0 20px 20px;
  margin: 0;
  text-align: justify;
}

/* Why Read Section */
.page-blog__why-read-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__benefits-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
}

.page-blog__benefits-list li {
  background-color: #f0f8ff;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.1em;
  line-height: 1.5;
  color: #333333;
}

.page-blog__benefits-list li strong {
  color: #26A9E0;
}

.page-blog__read-more-cta {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Latest Posts Section (Blog Section) */
.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-blog__blog-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  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__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-blog__blog-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-blog__blog-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 20px;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
  text-align: justify;
}

.page-blog__blog-card-date {
  font-size: 0.9em;
  color: #999999;
  display: block;
}

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

.page-blog__view-all-posts {
  padding: 12px 30px;
  font-size: 1.1em;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

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

.page-blog__faq-item {
  background-color: #f0f8ff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #26A9E0;
  color: #FFFFFF;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-blog__faq-qtext {
  flex-grow: 1;
}

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

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

.page-blog__faq-answer {
  padding: 20px 25px;
  background-color: #FFFFFF;
  color: #333333;
  font-size: 1em;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
}

/* CTA Section */
.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-blog__dark-section {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-blog__cta-button {
  padding: 15px 35px;
  font-size: 1.2em;
}

/* General Image & Button Responsive */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-blog__categories-grid,
  .page-blog__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog__container {
    padding: 15px;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-blog__section-subtitle {
    font-size: 1em;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }
  .page-blog__hero-content {
    padding: 30px 15px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }
  .page-blog__hero-description {
    font-size: 1em !important;
  }
  .page-blog__hero-cta {
    padding: 10px 25px !important;
    font-size: 1em !important;
  }

  /* Categories Section */
  .page-blog__categories-grid,
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-title,
  .page-blog__blog-card-title {
    font-size: 1.2em;
  }
  .page-blog__category-description,
  .page-blog__blog-card-excerpt {
    font-size: 0.9em;
  }
  .page-blog__category-image,
  .page-blog__blog-card-image {
    height: 180px; /* Adjust height for mobile */
  }

  /* Why Read Section */
  .page-blog__benefits-list {
    margin: 20px auto;
  }
  .page-blog__benefits-list li {
    font-size: 1em;
    padding: 12px 15px;
  }

  /* FAQ Section */
  .page-blog__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-blog__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* CTA Section */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1.1em !important;
  }

  /* Universal Image and Button Rules for Mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__introduction-section,
  .page-blog__categories-section,
  .page-blog__why-read-section,
  .page-blog__latest-posts-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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-left: 15px;
    padding-right: 15px;
  }

  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* CSS for potential homepage-like elements (as per checklist, even if not in HTML for this page) */
  /* Top Carousel */
  .page-blog__hero-carousel-section {
    padding-top: 10px !important;
    /* More specific carousel styles if it were present */
  }
  .page-blog__hero-slider {
    /* Mobile styles for slider */
  }
  .page-blog__hero-slide {
    /* Mobile styles for individual slides */
  }
  .page-blog__hero-slider-prev, .page-blog__hero-slider-next {
    /* Mobile styles for navigation arrows */
  }

  /* Guide Box with 5 vertical team cards */
  .page-blog__guide-box {
    padding: 15px !important;
  }
  .page-blog__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* For 2+3 layout */
    gap: 10px !important;
  }
  .page-blog__guide-card {
    padding-top: 0 !important;
    flex: none !important;
    max-width: 100% !important;
  }
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2 {
    grid-column: span 3 !important;
  }
  .page-blog__guide-card--pos-3, .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
    grid-column: span 2 !important;
  }
  .page-blog__guide-card img {
    aspect-ratio: 250/350 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Home Content Box */
  .page-blog__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .page-blog__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }

  /* Blog Card Grid (used by .page-blog__latest-posts-section) */
  .page-blog__blog-section .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 columns for smaller tablets */
  }
  @media (max-width: 480px) {
    .page-blog__blog-section .page-blog__blog-grid {
      grid-template-columns: 1fr !important; /* 1 column for phones */
    }
  }
}