/* style/blog.css */

/* Base Styles & Typography */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light background */
  background-color: #ffffff; /* Default light background */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__section-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.4;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
  background-color: #f0f8ff;
  text-align: center;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  display: block;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-blog__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #444444;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

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

.page-blog__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1a7fb3;
  border-color: #1a7fb3;
}

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

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

.page-blog__post-image {
  width: 100%;
  height: 225px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

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

.page-blog__post-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #1a7fb3;
}

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

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

.page-blog__read-more {
  display: inline-block;
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #1a7fb3;
}

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

/* Featured Section */
.page-blog__featured-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-blog__featured-section .page-blog__section-title,
.page-blog__featured-section .page-blog__section-subtitle {
  color: #FFFFFF;
}

.page-blog__featured-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-blog__featured-card {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFFFFF;
}

.page-blog__featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.page-blog__featured-image {
  width: 50%;
  height: auto;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-blog__featured-content {
  width: 50%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-blog__featured-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__featured-title a {
  color: #FFFFFF;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__featured-title a:hover {
  color: #f0f8ff;
}

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

.page-blog__featured-excerpt {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Categories & Tags Section */
.page-blog__categories-tags {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-blog__tags-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__tag-item {
  display: inline-block;
  background-color: #e0f2ff;
  color: #26A9E0;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__tag-item:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  padding: 80px 0;
  background: linear-gradient(to right, #26A9E0, #1a7fb3);
  text-align: center;
  color: #FFFFFF;
}

.page-blog__cta-title {
  font-size: clamp(30px, 4vw, 45px);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #e0f2ff;
  border-bottom: 1px solid #d0e7f7;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-blog__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-blog__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

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

.page-blog__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  background-color: #fdfdfd;
  border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-blog__featured-card {
    flex-direction: column;
  }

  .page-blog__featured-image,
  .page-blog__featured-content {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px !important;
  }

  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__featured-section,
  .page-blog__categories-tags,
  .page-blog__cta-banner,
  .page-blog__faq-section {
    padding: 40px 0 !important;
  }

  .page-blog__hero-image {
    margin-bottom: 20px;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  .page-blog__description {
    font-size: clamp(16px, 4vw, 18px);
  }

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__post-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-blog__post-title {
    font-size: 20px;
  }

  .page-blog__post-excerpt {
    font-size: 15px;
  }

  .page-blog__featured-content {
    padding: 20px;
  }

  .page-blog__featured-title {
    font-size: 22px;
  }

  .page-blog__featured-excerpt {
    font-size: 15px;
  }

  .page-blog__tags-list {
    gap: 10px;
  }

  .page-blog__tag-item {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-blog__cta-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .page-blog__cta-description {
    font-size: clamp(16px, 4vw, 18px);
  }

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

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

  /* Image and container responsive rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts,
  .page-blog__featured-section,
  .page-blog__categories-tags,
  .page-blog__cta-banner,
  .page-blog__faq-section,
  .page-blog__post-card,
  .page-blog__featured-card,
  .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; */ /* Handled by .page-blog__container */
    /* padding-right: 15px; */ /* Handled by .page-blog__container */
    overflow: hidden !important;
  }
}

/* Ensure content images are not too small */
.page-blog__post-image, .page-blog__featured-image {
  min-width: 200px;
  min-height: 200px;
}

/* Content area images CSS size lower bound */
.page-blog img:not(.page-blog__hero-image) {
  max-width: 100%; /* Ensure responsiveness */
  min-width: 200px; /* Minimum display width */
  min-height: 200px; /* Minimum display height */
  height: auto;
}

/* No CSS filters on images */
.page-blog img {
  filter: none !important;
}