/* -------------------------------------------------------------------------- */
/*                            Blog Page Specific CSS                            */
/* -------------------------------------------------------------------------- */

/* Base styles for the blog page */
.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__section-title {
  font-size: 2.5em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-blog__section-intro {
  font-size: 1.1em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__paragraph {
  margin-bottom: 1em;
  font-size: 1em;
  line-height: 1.7;
  color: #1F2D3D;
}

.page-blog__sub-title {
  font-size: 1.8em;
  color: #2F6BFF;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-blog__intro-text {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #1F2D3D;
}

.page-blog__text-white {
  color: #ffffff !important;
}

/* Buttons */
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-outline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-blog__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-blog__btn-outline {
  background: transparent;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
  margin-top: auto; /* Push to bottom of card */
  font-size: 0.9em;
  padding: 8px 15px;
}

.page-blog__btn-outline:hover {
  background: #2F6BFF;
  color: #ffffff;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for the image */
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 40px;
  text-align: center;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.page-blog__main-title {
  font-size: clamp(2em, 3.5vw, 3.2em); /* Responsive font size */
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.page-blog__hero-content .page-blog__description {
  font-size: 1.2em;
  color: #1F2D3D;
  margin-bottom: 30px;
  line-height: 1.7;
}

/* -------------------------------------------------------------------------- */
/*                             Latest Articles Section                            */
/* -------------------------------------------------------------------------- */
.page-blog__latest-articles-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-blog__article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  align-items: stretch; /* Ensure cards of same height */
}

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

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

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

.page-blog__article-image {
  width: 100%;
  height: 250px; /* Fixed height for article images */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-blog__article-date {
  font-size: 0.9em;
  color: #6C757D;
  margin-bottom: 10px;
}

.page-blog__article-title {
  font-size: 1.4em;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-blog__article-excerpt {
  font-size: 1em;
  color: #495057;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* -------------------------------------------------------------------------- */
/*                               Categories Section                             */
/* -------------------------------------------------------------------------- */
.page-blog__categories-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main Color */
}

.page-blog__category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-blog__category-card:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: bold;
  color: #ffffff;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #ffffff;
  opacity: 0.8;
}

/* -------------------------------------------------------------------------- */
/*                               Why Choose KV99 Section                          */
/* -------------------------------------------------------------------------- */
.page-blog__why-choose-kv99 {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

/* -------------------------------------------------------------------------- */
/*                                CTA Section                                 */
/* -------------------------------------------------------------------------- */
.page-blog__cta-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main Color */
  text-align: center;
}

.page-blog__cta-section .page-blog__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-blog__cta-buttons .page-blog__btn-primary,
.page-blog__cta-buttons .page-blog__btn-secondary {
  min-width: 200px;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
}

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

.page-blog__faq-item {
  background-color: #F9F9F9;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #1F2D3D;
  cursor: pointer;
  list-style: none; /* Hide default marker */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Standard property */
}

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #EBF2FF;
  color: #2F6BFF;
}

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

.page-blog__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  margin-left: 15px;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #495057;
  line-height: 1.7;
}

/* Hide default marker for details/summary */
.page-blog__faq-item > summary::-webkit-details-marker, 
.page-blog__faq-item > summary::marker {
  display: none;
}

/* -------------------------------------------------------------------------- */
/*                              Copyright Section                             */
/* -------------------------------------------------------------------------- */
.page-blog__copyright-section {
  padding: 30px 0;
  background-color: #1F2D3D; /* A dark color for footer-like section */
  text-align: center;
}

.page-blog__copyright-text {
  color: #A5C4FF; /* Glow color for text */
  font-size: 0.9em;
}

/* -------------------------------------------------------------------------- */
/*                               Responsive Styles                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

  .page-blog__hero-content {
    padding: 30px;
    margin: 30px auto;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
  }

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

  .page-blog__article-image {
    height: 220px;
  }

  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .page-blog__cta-buttons .page-blog__btn-primary,
  .page-blog__cta-buttons .page-blog__btn-secondary {
    min-width: 180px;
    padding: 10px 20px;
  }
}

@media (max-width: 768px) {
  /* All sections and containers get mobile padding and max-width */
  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__hero-image-wrapper,
  .page-blog__article-card,
  .page-blog__category-card,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding adjustments for direct children of container */
  .page-blog__hero-content,
  .page-blog__latest-articles-section .page-blog__container,
  .page-blog__categories-section .page-blog__container,
  .page-blog__why-choose-kv99 .page-blog__container,
  .page-blog__cta-section .page-blog__container,
  .page-blog__faq-section .page-blog__container,
  .page-blog__copyright-section .page-blog__container {
      padding-left: 15px;
      padding-right: 15px;
  }
  /* Reset padding for full-width elements inside padded containers */
  .page-blog__hero-image-wrapper, .page-blog__article-card, .page-blog__category-card, .page-blog__faq-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 30px;
  }

  .page-blog__hero-content {
    padding: 25px;
    margin: 20px auto;
  }

  .page-blog__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-blog__hero-content .page-blog__description {
    font-size: 1em;
  }

  /* 博客卡片区 */
  .page-blog__article-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 20px;
  }

  .page-blog__article-image {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__article-title {
    font-size: 1.2em;
  }

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

  .page-blog__section-intro {
    font-size: 1em;
  }

  .page-blog__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

  .page-blog__sub-title {
    font-size: 1.5em;
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog__btn-outline,
  .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-left: 15px;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* FAQ section */
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

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

  /* No long gold text, game carousel, partners grid or blog slider track for this page */
  /* These specific mobile rules are not applicable for this blog page, as they are homepage specific */
  /* .page-blog__home-content { ... } */
  /* .page-blog__slider-track { ... } */
  /* .page-blog__banners-top-wrapper { ... } */
  /* .page-blog__blog-slider-track { ... } */
}