/* style/blog.css */

/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Assuming body background is light */
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8;
  border-bottom: 1px solid #eee;
}

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

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

.page-blog__hero-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 clamp for responsiveness */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box; /* For button responsiveness */
}

.page-blog__cta-button:hover {
  background-color: #d16b06;
}

/* Content Sections */
.page-blog__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
}

/* Blog Post List */
.page-blog__post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__post-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  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: #1a7bb7;
}

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

.page-blog__post-meta {
  font-size: 0.85em;
  color: #888888;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

/* Categories Section */
.page-blog__categories-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.page-blog__category-item a {
  display: block;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-blog__category-item a:hover {
  background-color: #1a7bb7;
}

/* FAQ Section */
.page-blog__faq-section {
  background-color: #f0f8ff; /* Light blue background for FAQ */
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-blog__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-item details {
  /* For native details tag */
  list-style: none;
}

.page-blog__faq-item summary {
  cursor: pointer;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none; /* Remove default marker */
}

.page-blog__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

.page-blog__faq-answer {
  padding: 0 20px 20px 20px;
  color: #555555;
  font-size: 0.95em;
}

/* Final CTA Section */
.page-blog__final-cta {
  text-align: center;
  padding-bottom: 60px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* For desktop width */
  max-width: 1200px; /* For desktop max-width */
  box-sizing: border-box;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__post-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-blog__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

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

  .page-blog__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-blog__section {
    padding: 0 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-blog__post-list {
    grid-template-columns: 1fr;
  }

  .page-blog__categories-list {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__category-item {
    width: 100%;
    max-width: 300px; /* Limit category item width on mobile */
  }

  .page-blog__category-item a {
    text-align: center;
  }

  .page-blog__faq-section {
    padding: 40px 15px;
  }

  /* Images responsive */
  .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__post-card,
  .page-blog__hero-section,
  .page-blog__faq-section,
  .page-blog__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Ensure video wrapper is also responsive, though not explicitly used for video in this blog page */
  .page-blog__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* Video section specific padding for mobile */
  .page-blog__video-section {
    padding-top: 10px !important;
  }
}

/* Color Contrast Enforcement */
/* Assuming body is light, default text is dark */
.page-blog p,
.page-blog li,
.page-blog__post-excerpt,
.page-blog__post-meta,
.page-blog__faq-answer,
.page-blog__hero-description {
  color: #333333;
}

/* Darker backgrounds with light text */
.page-blog__category-item a,
.page-blog__cta-button {
  color: #ffffff;
}
/* Ensure contrast for brand colors */
.page-blog__post-title a {
  color: #26A9E0; /* Brand primary color */
}