/* style/blog.css */

/* Base styles for the blog page content */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light body background */
  background-color: #f8f8f8; /* Light background for sections */
}

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

.page-blog__section {
  padding: 60px 0;
  background-color: #ffffff;
  margin-bottom: 20px; /* Separator between sections */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__section:nth-child(even) {
  background-color: #f0faff; /* Light blue background for alternating sections */
}

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

.page-blog__text-block {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #555555;
}

.page-blog__keyword {
  font-weight: bold;
  color: #26A9E0;
}

/* 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;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f0faff; /* Very light blue background */
  overflow: hidden;
  margin-bottom: 20px; /* Consistent spacing */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  filter: none; /* Ensure no image filters */
}

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

.page-blog__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Using clamp for H1 font-size */
  color: #000000;
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #26A9E0; /* Primary color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(38, 169, 224, 0.4);
}

.page-blog__cta-button:hover {
  background: #1e87c0; /* Slightly darker primary color */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(38, 169, 224, 0.6);
}

/* Introduction Section (Features Grid) */
.page-blog__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__feature-item {
  background-color: #fdfdfd;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0f2ff;
}

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

.page-blog__feature-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__feature-item p {
  font-size: 16px;
  color: #666666;
}

/* Identification Section (Checklist) */
.page-blog__checklist {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-blog__checklist-item {
  background-color: #fdfdfd;
  padding: 25px 30px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #26A9E0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-blog__checklist-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog__checklist-title {
  font-size: 20px;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__checklist-item p {
  font-size: 16px;
  color: #666666;
}

/* Latest Articles Section */
.page-blog__latest-articles-section {
  background-color: #f0faff;
}

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

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

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

.page-blog__article-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent look */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no image filters */
}

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

.page-blog__article-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 700;
}

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

.page-blog__article-title a:hover {
  color: #26A9E0;
}

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

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

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

.page-blog__read-more:hover {
  color: #1e87c0;
  text-decoration: underline;
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
}

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


/* FAQ Section */
.page-blog__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  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;
}
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: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #26A9E0; /* Primary color for toggle */
  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 10px 10px;
}
.page-blog__faq-answer p {
  font-size: 16px;
  color: #555555;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-blog__section-title {
    font-size: 28px;
  }
  .page-blog__hero-image img {
    border-radius: 8px;
  }
}

@media (max-width: 768px) {
  .page-blog__section {
    padding: 40px 15px; /* Apply horizontal padding to sections directly */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 100% !important; /* Ensure full width */
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__container {
    padding: 0; /* Remove padding from container as section now handles it */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-section {
    padding: 10px 15px 40px 15px !important; /* Specific padding for hero section */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-section .page-blog__hero-container {
    padding: 0; /* Remove container padding as hero section now handles it */
  }
  .page-blog__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-blog__text-block {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section Mobile */
  .page-blog__hero-image {
    margin-bottom: 20px;
  }
  .page-blog__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__main-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Ensure full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Features Grid Mobile */
  .page-blog__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__feature-item {
    padding: 25px;
  }
  .page-blog__feature-title {
    font-size: 20px;
  }

  /* Checklist Mobile */
  .page-blog__checklist-item {
    padding: 20px;
  }
  .page-blog__checklist-title {
    font-size: 18px;
  }

  /* Article Grid Mobile */
  .page-blog__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-image {
    height: 180px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__article-title {
    font-size: 18px;
  }
  .page-blog__article-excerpt {
    font-size: 15px;
  }
  .page-blog__read-more {
    font-size: 15px;
  }
  .page-blog__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section Mobile */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
  .page-blog__faq-answer p {
    font-size: 15px;
  }

  /* Global image and container responsive styles */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Buttons responsive styles */
  .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;
  }
  .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;
  }
  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-blog__section-title {
    font-size: 22px;
  }
  .page-blog__main-title {
    font-size: clamp(22px, 8vw, 32px);
  }
  .page-blog__hero-description {
    font-size: 15px;
  }
}

/* Ensure no filter is used on images */
.page-blog img {
  filter: none;
}