/* style/blog.css */

/* --- General Page Styles --- */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
}

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

.page-blog__content-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: #444444;
}

.page-blog__content-text p {
  margin-bottom: 20px;
}

/* --- CTA Button Styles --- */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary brand color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-blog__cta-button:hover {
  background: #2298C9; /* Darkened primary color */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary:hover {
  background: #f0f0f0;
  color: #2298C9; /* Darkened primary color */
  border-color: #2298C9; /* Darkened primary color */
}

/* --- Hero Section --- */
.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* Fixed header spacing: body handles padding-top, this section only needs small decorative top padding */
  padding-top: 10px;
  background-color: #f8f8f8; /* Light background for the section */
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

.page-blog__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-content p {
  font-size: 20px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* --- About Blog Section --- */
.page-blog__about-blog {
  padding: 60px 0;
  background-color: #f0f5f8; /* A slightly different light background */
}

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

.page-blog__post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 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.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 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-blog__post-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1; /* Allow title to take up space */
}

.page-blog__card-excerpt {
  font-size: 16px;
  color: #666666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-blog__post-date {
  font-size: 14px;
  color: #999999;
  display: block;
  margin-top: auto; /* Push date to bottom */
}

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

/* --- FAQ Section --- */
.page-blog__faq-section {
  padding: 60px 0;
  background: #26A9E0; /* Dark brand color for section background */
  color: #ffffff; /* White text for dark background */
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for contrast */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly visible background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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;
  color: #ffffff; /* White question text */
}

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: rgba(255, 255, 255, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 255, 255, 0.02); /* Very subtle background for answer */
  border-radius: 0 0 8px 8px;
  color: #f0f0f0; /* Light grey text for answer */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-blog__hero-content h1 {
    font-size: 40px;
  }
  .page-blog__hero-content p {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 30px;
  }
  .page-blog__card-title {
    font-size: 20px;
  }
  .page-blog__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }
  .page-blog__hero-content h1 {
    font-size: 32px;
  }
  .page-blog__hero-content p {
    font-size: 16px;
    max-width: 100%;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }
  .page-blog__section-title {
    font-size: 26px;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-blog__latest-posts,
  .page-blog__faq-section,
  .page-blog__about-blog {
    padding: 40px 0;
  }
  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__post-card img {
    
  }
  .page-blog__card-title {
    font-size: 18px;
  }
  .page-blog__card-excerpt {
    font-size: 15px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 15px;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__container,
  .page-blog__post-card,
  .page-blog__hero-container,
  .page-blog__content-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__view-all .page-blog__cta-button {
    padding-left: 15px;
    padding-right: 15px;
  }
}