.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: 20px;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(180deg, #6FA3FF 0%, #F4F7FB 100%);
  padding-bottom: 40px;
}

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

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

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Use clamp for H1 */
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-blog__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-blog__btn-secondary:hover {
  background: #f0f5ff;
  color: #2558cc;
  border-color: #2558cc;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-blog__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__section-description {
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-blog__latest-articles-section,
.page-blog__categories-section,
.page-blog__guides-section,
.page-blog__faq-section,
.page-blog__cta-bottom-section {
  padding: 40px 0;
  margin-bottom: 30px;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-blog__latest-articles-section {
  background: #F4F7FB; /* Background */
  box-shadow: none;
  padding: 0;
  margin-bottom: 60px;
}

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

.page-blog__article-card {
  background: #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;
}

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

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

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

.page-blog__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-title a {
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #2558cc;
}

.page-blog__article-date {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
  display: block;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
}

.page-blog__read-more-btn {
  display: inline-block;
  color: #2F6BFF; /* Main Color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #2558cc;
  text-decoration: underline;
}

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

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

.page-blog__category-card,
.page-blog__guide-card {
  background: #FFFFFF; /* Card BG */
  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;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

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

.page-blog__category-card img,
.page-blog__guide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-blog__category-title,
.page-blog__guide-card .page-blog__card-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  padding: 15px 20px 0;
  margin-bottom: 10px;
}

.page-blog__category-desc,
.page-blog__guide-card .page-blog__card-excerpt {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-blog__guide-card .page-blog__read-more-btn {
  padding: 0 20px 20px;
  align-self: flex-start;
}

/* FAQ styles */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
details.page-blog__faq-item summary.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #000000; /* Custom Color_1776249996415 */
  font-weight: 600;
}
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: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open].page-blog__faq-item .page-blog__faq-toggle {
  transform: rotate(45deg);
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}
.page-blog__faq-answer p {
  margin: 0;
}

.page-blog__cta-bottom-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.2);
  margin-bottom: 40px;
}

.page-blog__cta-bottom-section .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 25px;
}

.page-blog__cta-bottom-section .page-blog__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-blog__cta-buttons-bottom {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-blog__cta-buttons-bottom .page-blog__btn-primary {
  background: #ffffff;
  color: #2F6BFF;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-blog__cta-buttons-bottom .page-blog__btn-primary:hover {
  background: #f0f5ff;
  color: #2558cc;
  border-color: #f0f5ff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-blog__cta-buttons-bottom .page-blog__btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
  box-shadow: none;
}

.page-blog__cta-buttons-bottom .page-blog__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: #ffffff;
}

/* General image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-section {
    padding-bottom: 30px;
  }
  .page-blog__hero-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }
  .page-blog__hero-description {
    font-size: 1em;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    gap: 20px;
  }
  .page-blog__article-card img,
  .page-blog__category-card img,
  .page-blog__guide-card img {
    
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }
  .page-blog__category-title,
  .page-blog__guide-card .page-blog__card-title {
    font-size: 1.1em;
  }
}

@media (max-width: 849px) {
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
  }
  .page-blog__hero-image {
    margin-bottom: 20px;
  }
  .page-blog__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-blog__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Constrain buttons for better mobile look */
    margin: 0 auto;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 15px;
  }
  .page-blog__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-blog__latest-articles-section,
  .page-blog__categories-section,
  .page-blog__guides-section,
  .page-blog__faq-section,
  .page-blog__cta-bottom-section {
    padding: 30px 0;
    margin-bottom: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
  }
  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__guide-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-blog__article-card img,
  .page-blog__category-card img,
  .page-blog__guide-card img {
    
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-blog__card-content {
    padding: 15px;
  }
  .page-blog__card-title {
    font-size: 1.1em;
  }
  .page-blog__article-date,
  .page-blog__card-excerpt {
    font-size: 0.85em;
  }

  /* FAQ specific mobile styles */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1em;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__cta-bottom-section {
    padding: 40px 15px;
  }
  .page-blog__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-blog__cta-bottom-section .page-blog__btn-primary,
  .page-blog__cta-bottom-section .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Generic image and container mobile adaptation */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__articles-grid,
  .page-blog__categories-grid,
  .page-blog__guides-grid {
    padding-left: 0;
    padding-right: 0;
  }
}