.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy from body */
}

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

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

.page-blog__dark-section {
  background-color: #08162B;
  color: #F3F8FF;
}

.page-blog__section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  color: #F3F8FF; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__text-content {
  font-size: 16px;
  color: #AFC4E8;
  margin-bottom: 20px;
}

/* Hero Section */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Adjusted for shared body padding */
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image-container {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  position: relative;
  z-index: 1;
  padding: 0 20px;
  max-width: 900px;
}

.page-blog__main-title {
  font-size: clamp(32px, 4vw, 52px);
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-blog__btn-secondary {
  background: #10233F; /* Card BG */
  color: #F3F8FF; /* Text Main */
  border: 2px solid #244D84; /* Border */
}

.page-blog__btn-secondary:hover {
  background: #244D84; /* Border color */
  color: #F3F8FF;
  transform: translateY(-2px);
}

.page-blog__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Categories Section */
.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-blog__category-card {
  background: #10233F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
  color: #F3F8FF;
}

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

.page-blog__category-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-blog__category-title {
  font-size: 22px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-blog__category-text {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
}

/* Why Follow Section */
.page-blog__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-blog__benefit-item {
  background: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
}

.page-blog__benefit-title {
  font-size: 24px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-blog__benefit-text {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Latest Posts Section (Blog Slider) */
.page-blog__blog-slider {
  position: relative;
  margin-top: 40px;
  padding: 0 40px;
}

.page-blog__blog-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 20px;
  padding-bottom: 20px;
  scrollbar-width: none; /* Firefox */
}

.page-blog__blog-slider-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.page-blog__post-item {
  flex: 0 0 auto;
  width: 350px;
  scroll-snap-align: start;
  background: #10233F; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  color: #F3F8FF;
}

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

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

.page-blog__post-title {
  font-size: 20px;
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-blog__post-title a {
  color: #F3F8FF; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__post-title a:hover {
  color: #1D5FD1; /* Auxiliary Color */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 20px;
}

.page-blog__read-more {
  display: inline-block;
  color: #1D5FD1; /* Auxiliary Color */
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #2B73F6;
}

.page-blog__blog-slider-prev,
.page-blog__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(17, 59, 122, 0.7); /* Main Color with opacity */
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.page-blog__blog-slider-prev:hover,
.page-blog__blog-slider-next:hover {
  background-color: rgba(29, 95, 209, 0.9); /* Auxiliary Color with opacity */
}

.page-blog__blog-slider-prev {
  left: 0;
}

.page-blog__blog-slider-next {
  right: 0;
}

.page-blog__blog-slider-prev svg,
.page-blog__blog-slider-next svg {
  fill: #F3F8FF; /* Text Main */
  width: 24px;
  height: 24px;
}

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  color: #F3F8FF;
}

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;
}

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: #1B3357; /* Divider color */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #08162B; /* Deep Navy */
  border-radius: 0 0 12px 12px;
  color: #AFC4E8; /* Text Secondary */
}

.page-blog__faq-answer p {
  margin: 0;
  font-size: 16px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-image-container {
    max-height: 500px;
  }
  .page-blog__post-item {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

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

  .page-blog__hero-section {
    padding-bottom: 40px;
    padding-top: 10px;
  }

  .page-blog__hero-image-container {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-blog__hero-image {
    object-fit: contain !important; /* Banner 849px contain */
    height: auto !important;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-blog__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
  }

  .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__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

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

  .page-blog__category-card {
    padding: 20px;
  }

  .page-blog__category-image {
    height: 180px;
  }

  .page-blog__category-title {
    font-size: 20px;
  }

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

  .page-blog__benefit-item {
    padding: 25px;
  }

  .page-blog__benefit-title {
    font-size: 20px;
  }

  .page-blog__blog-slider {
    padding: 0 15px;
  }

  .page-blog__blog-slider-track {
    scroll-snap-type: x proximity;
    padding-bottom: 15px;
  }

  .page-blog__post-item {
    width: calc(100% - 30px); /* Adjust width to show one card with some padding */
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-blog__post-item:first-child {
    margin-left: 0;
  }

  .page-blog__blog-slider-prev,
  .page-blog__blog-slider-next {
    width: 35px;
    height: 35px;
    top: calc(50% - 10px); /* Adjust position for smaller buttons */
  }

  .page-blog__blog-slider-prev svg,
  .page-blog__blog-slider-next svg {
    width: 20px;
    height: 20px;
  }

  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: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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