/* Base styles for the Blog page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

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

.page-blog__heading-2 {
  font-size: 2.5em;
  color: #2F6BFF; /* Main Color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-blog__heading-3 {
  font-size: 1.8em;
  color: #1F2D3D; /* Text Main */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__paragraph {
  font-size: 1em;
  margin-bottom: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-blog__content-block {
  background-color: #FFFFFF; /* Card B G */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles main offset */
  padding-bottom: 60px;
  background-color: #F4F7FB;
}

.page-blog__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.page-blog__hero-content {
  text-align: center;
  max-width: 800px;
}

.page-blog__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  color: #2F6BFF;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.2em;
  color: #1F2D3D;
  margin-bottom: 30px;
}

/* CTA Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.6);
}

.page-blog__cta-button--large {
  padding: 18px 35px;
  font-size: 1.3em;
}

.page-blog__secondary-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFFFFF;
  color: #2F6BFF;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  margin-left: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__secondary-button:hover {
  background-color: #2F6BFF;
  color: #FFFFFF;
}

.page-blog__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-blog__article-card {
  background-color: #FFFFFF; /* Card B G */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

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

.page-blog__article-image-wrapper {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  overflow: hidden;
}

.page-blog__article-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.page-blog__article-title {
  font-size: 1.4em;
  color: #2F6BFF;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__article-meta {
  font-size: 0.9em;
  color: #667eea; /* A lighter shade of blue */
  margin-bottom: 15px;
}

.page-blog__article-excerpt {
  font-size: 0.95em;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #2F6BFF;
  font-weight: 600;
  text-decoration: underline;
}

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

/* FAQ Section */
.page-blog__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-blog__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  background-color: #F9FBFF;
  border-bottom: 1px solid #D6E2FF;
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker */
}

.page-blog__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #E6F0FF;
  border-bottom: 1px solid #2F6BFF;
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  font-weight: 300;
  color: #2F6BFF;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #1F2D3D;
  background-color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__heading-2 {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog__heading-3 {
    font-size: 1.5em;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    gap: 20px;
  }

  .page-blog__main-title {
    font-size: 2em; /* Adjusted for mobile */
  }

  .page-blog__description {
    font-size: 1em;
  }

  /* Buttons */
  .page-blog__cta-button,
  .page-blog__secondary-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: 0 !important; /* Override margin-left for secondary button */
  }

  .page-blog__cta-button--large {
    font-size: 1.1em;
    padding: 15px 25px;
  }

  .page-blog__button-group {
    flex-direction: column !important;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* Featured Articles Grid */
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__article-image-wrapper img,
  .page-blog__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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