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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding for hero section */
  padding-bottom: 60px;
  background-color: #F4F7FB; /* Background */
}

.page-blog__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 16px;
}

.page-blog__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-blog__hero-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-blog__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.page-blog__hero-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.2);
}

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

.page-blog__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #FFFFFF;
}

.page-blog__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__btn--secondary {
  background: #FFFFFF;
  color: #2F6BFF;
  border-color: #2F6BFF;
}

.page-blog__btn--secondary:hover {
  background: #E0F0FF;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.1);
}

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

.page-blog__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 50px;
}

.page-blog__blog-list-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

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

.page-blog__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(47, 107, 255, 0.2);
}

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

.page-blog__blog-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-content {
  padding: 25px;
}

.page-blog__blog-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__blog-card-title:hover {
  color: #2F6BFF;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95rem;
  color: #1F2D3D;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-blog__blog-card-date {
  font-size: 0.85rem;
  color: #6C757D;
}

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

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 900px;
}

.page-blog__category-item {
  background-color: #F4F7FB;
  border-radius: 25px;
  padding: 8px 20px;
  transition: background-color 0.3s ease;
}

.page-blog__category-item:hover {
  background-color: #D6E2FF;
}

.page-blog__category-link {
  text-decoration: none;
  color: #2F6BFF;
  font-weight: 500;
  font-size: 0.95rem;
}

.page-blog__category-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #1F2D3D;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

.page-blog__faq-item {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-blog__faq-item[open] {
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.1);
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question::marker {
  display: none;
}

.page-blog__faq-question:hover {
  background-color: #F0F5FF;
}

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

.page-blog__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #2F6BFF;
  margin-left: 15px;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  content: '−';
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #FFFFFF;
  text-align: center;
}

.page-blog__cta-container {
  max-width: 900px;
}

.page-blog__cta-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-blog__cta-description {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 40px;
  color: #FFFFFF;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-blog__hero-content {
    flex: 1 1 100%;
  }

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

  .page-blog__cta-buttons {
    justify-content: center;
  }

  .page-blog__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__section-title {
    font-size: 2rem;
  }

  .page-blog__cta-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, not var(--header-offset) */
    padding-bottom: 40px;
  }

  .page-blog__hero-container {
    padding: 20px 15px;
  }

  .page-blog__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-blog__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Buttons and Button Containers */
  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__btn,
  .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;
    padding: 12px 20px;
    font-size: 0.95rem;
  }

  /* Blog List Section */
  .page-blog__blog-list-section {
    padding: 40px 0;
  }

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

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__blog-card img {
    height: 200px; /* Adjust height for smaller screens */
  }

  .page-blog__blog-card-content {
    padding: 20px;
  }

  .page-blog__blog-card-title {
    font-size: 1.2rem;
  }

  .page-blog__blog-card-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__view-all-button-container {
    margin-top: 30px;
  }

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

  .page-blog__category-list {
    gap: 10px;
    margin-bottom: 30px;
  }

  .page-blog__category-item {
    padding: 6px 15px;
    font-size: 0.85rem;
  }

  .page-blog__category-description {
    font-size: 1rem;
  }

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

  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-blog__faq-toggle {
    font-size: 1.5rem;
  }

  .page-blog__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* CTA Section */
  .page-blog__cta-section {
    padding: 50px 0;
  }

  .page-blog__cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-blog__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* General Image & Container rules for mobile */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__container,
  .page-blog__hero-container,
  .page-blog__blog-list-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}