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

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
  border-radius: 2px;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding as per instruction */
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  margin-bottom: 60px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
  border-radius: 8px;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-blog__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #2F6BFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 20px;
  color: #1F2D3D;
  margin-bottom: 30px;
}

.page-blog__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Buttons */
.page-blog__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-blog__btn--secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(111, 163, 255, 0.2);
}

.page-blog__btn--secondary:hover {
  background: #f0f5ff;
  color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(111, 163, 255, 0.4);
}

.page-blog__btn--outline {
  background: transparent;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  padding: 12px 25px;
  font-size: 16px;
}

.page-blog__btn--outline:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* Latest Posts Section */
.page-blog__latest-posts-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

.page-blog__posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page-blog__post-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-blog__post-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

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

.page-blog__post-content {
  padding: 25px;
  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: #1F2D3D; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #2F6BFF;
}

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

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

.page-blog__read-more-btn {
  display: inline-block;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  align-self: flex-start;
  font-size: 16px;
}

.page-blog__read-more-btn:hover {
  text-decoration: underline;
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 40px 0;
  margin-bottom: 60px;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  justify-content: center;
}

.page-blog__category-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #2F6BFF;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-blog__category-card:hover {
  background: #2F6BFF;
  color: #ffffff;
  border-color: #2F6BFF;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.3);
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background: #2F6BFF;
  color: #ffffff;
  text-align: center;
  margin-bottom: 60px;
  border-radius: 12px;
  overflow: hidden;
}

.page-blog__cta-section .page-blog__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-blog__cta-content {
  flex: 1;
  text-align: left;
}

.page-blog__cta-title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-blog__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-blog__cta-image {
  flex-shrink: 0;
  width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0;
  margin-bottom: 60px;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px 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: #f0f5ff;
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item[open] .page-blog__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #f9fbfc; /* Slightly different background for answer */
  border-radius: 0 0 8px 8px;
  color: #1F2D3D;
  font-size: 16px;
}
details.page-blog__faq-item .page-blog__faq-answer p {
    margin: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-title {
    font-size: 40px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__cta-section .page-blog__container {
    flex-direction: column;
    text-align: center;
  }
  .page-blog__cta-content {
    text-align: center;
  }
  .page-blog__cta-image {
    max-width: 100%;
    width: 100%;
  }
  .page-blog__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Top section - fixed header spacing */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding */
    margin-bottom: 40px;
  }

  .page-blog__hero-title {
    font-size: 32px;
  }
  .page-blog__hero-description {
    font-size: 16px;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure button container is full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }
  .page-blog__btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  /* Latest Posts */
  .page-blog__latest-posts-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-blog__post-image {
    height: 180px;
  }
  .page-blog__post-title {
    font-size: 18px;
  }
  .page-blog__post-excerpt {
    font-size: 15px;
  }

  /* Categories */
  .page-blog__categories-section {
    padding: 30px 0;
    margin-bottom: 40px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-blog__category-card {
    font-size: 16px;
    padding: 15px;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
    margin-bottom: 40px;
    border-radius: 8px;
  }
  .page-blog__cta-title {
    font-size: 30px;
  }
  .page-blog__cta-description {
    font-size: 16px;
  }
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure button container is full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }
  .page-blog__cta-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0;
    margin-bottom: 40px;
  }
  details.page-blog__faq-item {
    border-radius: 6px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 18px;
  }
  .page-blog__faq-qtext {
    font-size: 16px;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 18px 15px;
    font-size: 15px;
  }

  /* General image and container responsive rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__cta-section,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}