/* ===== Blog page styles ===== */
.page-blog {
  background: #F4F7FB;
  color: #1F2D3D;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Hero Section */
.page-blog__hero-section {
  background: #F4F7FB;
  padding: 10px 16px 24px;
  display: flex;
  flex-direction: column;
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 5;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.page-blog__hero-content {
  max-width: 1200px;
  margin: 16px auto 0;
  text-align: center;
}

.page-blog__hero-title {
  font-size: clamp(1.6rem, 2.4vw + 1rem, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #1F2D3D;
  margin: 0 0 12px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #1F2D3D;
  max-width: 780px;
  margin: 0 auto 20px;
}

.page-blog__hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-blog__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  border: none;
  cursor: pointer;
  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;
  box-shadow: 0 4px 16px rgba(47, 107, 255, 0.35);
}

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

.page-blog__btn--outline {
  background: transparent;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-blog__btn--outline:hover {
  background: rgba(47, 107, 255, 0.08);
}

/* Featured Section */
.page-blog__featured-section {
  padding: 24px 16px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__section-header {
  text-align: center;
  margin-bottom: 28px;
}

.page-blog__section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1F2D3D;
  margin: 0 0 8px;
}

.page-blog__section-subtitle {
  font-size: 1rem;
  color: #1F2D3D;
  opacity: 0.8;
  margin: 0;
}

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

.page-blog__featured-card {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(165, 196, 255, 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-blog__featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(165, 196, 255, 0.4);
}

.page-blog__featured-image img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.page-blog__featured-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__featured-tag {
  display: inline-block;
  background: #EAF1FF;
  color: #2F6BFF;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.page-blog__featured-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 10px;
}

.page-blog__featured-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color .2s;
}

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

.page-blog__featured-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1F2D3D;
  opacity: 0.85;
  margin: 0 0 16px;
  flex: 1;
}

.page-blog__featured-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  border-top: 1px solid #D6E2FF;
  padding-top: 14px;
}

.page-blog__featured-date {
  color: #1F2D3D;
  opacity: 0.7;
}

.page-blog__featured-more {
  color: #2F6BFF;
  font-weight: 700;
  text-decoration: none;
}

/* List Section */
.page-blog__list-section {
  padding: 16px 16px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-blog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.page-blog__card {
  background: #FFFFFF;
  border: 1px solid #D6E2FF;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.page-blog__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(165, 196, 255, 0.3);
}

.page-blog__card img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  display: block;
}

.page-blog__card-body {
  padding: 18px;
}

.page-blog__card-tag {
  display: inline-block;
  background: #EAF1FF;
  color: #2F6BFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.page-blog__card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 8px;
}

.page-blog__card-title a {
  color: #1F2D3D;
  text-decoration: none;
  transition: color .2s;
}

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

.page-blog__card-excerpt {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #1F2D3D;
  opacity: 0.85;
  margin: 0;
}

.page-blog__card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-top: 1px solid #D6E2FF;
}

.page-blog__card-date {
  font-size: 0.82rem;
  color: #1F2D3D;
  opacity: 0.7;
}

.page-blog__card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2F6BFF;
  text-decoration: none;
}

.page-blog__view-more {
  text-align: center;
}

/* Guide Section */
.page-blog__guide-section {
  background: #FFFFFF;
  border-top: 1px solid #D6E2FF;
  padding: 16px 16px 48px;
}

.page-blog__guide-title {
  text-align: center;
  color: #2F6BFF;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 24px 0 20px;
}

.page-blog__guide-inner {
  max-width: 820px;
  margin: 0 auto;
}

.page-blog__guide-item {
  background: #F4F7FB;
  border: 1px solid #D6E2FF;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}

.page-blog__guide-question {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.page-blog__guide-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #2F6BFF;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.page-blog__guide-answer {
  padding: 14px 0 4px;
  color: #1F2D3D;
  font-size: 0.95rem;
  line-height: 1.7;
}

.page-blog__guide-figure {
  margin: 0 0 12px;
}

.page-blog__guide-figure img {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  border-radius: 10px;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 1024px) {
  .page-blog__featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-blog__hero-image img {
    aspect-ratio: 2 / 1;
  }

  .page-blog__hero-title {
    font-size: 1.4rem;
  }

  .page-blog__hero-description {
    font-size: 0.95rem;
  }

  .page-blog__hero-actions {
    gap: 8px;
  }

  .page-blog__btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .page-blog__featured-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-blog__featured-image img {
    aspect-ratio: 16 / 9;
  }

  .page-blog__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .page-blog__card img {
    aspect-ratio: 16 / 9;
  }

  .page-blog__guide-title {
    font-size: 1.4rem;
  }

  .page-blog__guide-item {
    padding: 14px;
  }

  .page-blog__guide-answer {
    font-size: 0.9rem;
  }

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

  .page-blog {
    max-width: 100%;
    overflow-x: hidden;
  }
}