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

.page-blog__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-blog__hero-image {
  width: 100%;
  height: 675px; /* Aspect ratio 16:9 for 1200x675 */
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px 60px;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  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;
  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%);
  transform: translateY(-2px);
}

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

.page-blog__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-blog__article-section,
.page-blog__related-articles-section,
.page-blog__faq-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-blog__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: #2F6BFF;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-blog__main-article-content {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.page-blog__article-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 20px;
  text-align: center;
}

.page-blog__article-meta {
  text-align: center;
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-blog__meta-item {
  display: inline-block;
}

.page-blog__article-figure {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-blog__article-subtitle {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-blog__main-article-content p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #333333;
}

.page-blog__bullet-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-blog__bullet-list li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-blog__bullet-list strong {
  color: #2F6BFF;
}

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

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

.page-blog__article-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2F6BFF;
  padding: 20px 20px 10px;
  flex-grow: 1;
}

.page-blog__card-description {
  font-size: 0.95rem;
  color: #555;
  padding: 0 20px 20px;
}

.page-blog__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

details.page-blog__faq-item {
  margin-bottom: 0;
  border-radius: 12px;
  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: #F4F7FB;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.15rem;
  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;
  line-height: 1;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 12px 12px;
  color: #333333;
  font-size: 1rem;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    padding: 30px 20px 50px;
  }
  .page-blog__hero-image {
    height: 500px;
  }
  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-blog__description {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
  }
  .page-blog__article-section,
  .page-blog__related-articles-section,
  .page-blog__faq-section {
    padding: 50px 20px;
  }
  .page-blog__main-article-content {
    padding: 30px;
  }
  .page-blog__article-title {
    font-size: clamp(1.8rem, 3.8vw, 2.2rem);
  }
  .page-blog__article-subtitle {
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  }
  .page-blog__main-article-content p,
  .page-blog__bullet-list li {
    font-size: 1rem;
  }
  .page-blog__card-title {
    font-size: 1.2rem;
  }
  .page-blog__faq-qtext {
    font-size: 1.05rem;
  }
}

@media (max-width: 768px) {
  .page-blog__hero-image-wrap {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* HERO mobile: object-fit:contain */
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content {
    padding: 25px 15px 40px;
  }
  .page-blog__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: clamp(0.9rem, 3.5vw, 1rem);
    margin-bottom: 25px;
  }
  .page-blog__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    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: 1rem;
  }
  .page-blog__article-section,
  .page-blog__related-articles-section,
  .page-blog__faq-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-blog__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-blog__section-title::after {
    margin-top: 10px;
  }
  .page-blog__main-article-content {
    padding: 25px;
    border-radius: 8px;
  }
  .page-blog__article-title {
    font-size: clamp(1.6rem, 5.5vw, 2rem);
    margin-bottom: 15px;
  }
  .page-blog__article-meta {
    font-size: 0.85rem;
    margin-bottom: 20px;
    flex-direction: column;
    gap: 5px;
  }
  .page-blog__article-figure {
    margin: 20px auto;
    border-radius: 6px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__article-subtitle {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-blog__main-article-content p,
  .page-blog__bullet-list li {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .page-blog__cta-buttons--center {
    flex-direction: column;
    gap: 10px;
  }
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card {
    border-radius: 8px;
  }
  .page-blog__card-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 1.1rem;
    padding: 15px 15px 8px;
  }
  .page-blog__card-description {
    font-size: 0.85rem;
    padding: 0 15px 15px;
  }
  details.page-blog__faq-item {
    border-radius: 8px;
  }
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
  }
  .page-blog__faq-qtext {
    font-size: 1rem;
  }
  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 20px 20px;
  }
}