/* style/blog-phan-tich-keo-nha-cai-chuan.css */
.page-blog-phan-tich-keo-nha-cai-chuan {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}

.page-blog-phan-tich-keo-nha-cai-chuan__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__hero-section {
  position: relative;
  padding-top: 10px; /* Rely on body padding-top from shared.css */
  margin-bottom: 40px;
  background-color: #f0f8ff;
}

.page-blog-phan-tich-keo-nha-cai-chuan__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 15px;
  background: rgba(255, 255, 255, 0.9);
  margin-top: -100px;
  border-radius: 8px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-blog-phan-tich-keo-nha-cai-chuan__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog-phan-tich-keo-nha-cai-chuan__hero-description {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 30px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__section-title {
  font-size: 2.2em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-blog-phan-tich-keo-nha-cai-chuan__section-title--white {
  color: #ffffff;
}

.page-blog-phan-tich-keo-nha-cai-chuan__sub-section-title {
  font-size: 1.6em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog-phan-tich-keo-nha-cai-chuan__content-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-blog-phan-tich-keo-nha-cai-chuan__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-blog-phan-tich-keo-nha-cai-chuan__figure {
  margin: 30px 0;
  text-align: center;
}

.page-blog-phan-tich-keo-nha-cai-chuan__figure-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-blog-phan-tich-keo-nha-cai-chuan__figure-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-phan-tich-keo-nha-cai-chuan__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__btn-primary:hover {
  background-color: #1a7bbd;
  border-color: #1a7bbd;
}

.page-blog-phan-tich-keo-nha-cai-chuan__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  margin: 0 10px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__btn-secondary:hover {
  background-color: #f0f8ff;
}

.page-blog-phan-tich-keo-nha-cai-chuan__cta-container {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-blog-phan-tich-keo-nha-cai-chuan__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-blog-phan-tich-keo-nha-cai-chuan__text-link:hover {
  color: #1a7bbd;
}

.page-blog-phan-tich-keo-nha-cai-chuan__related-articles-section {
  background-color: #26A9E0;
  padding: 60px 0;
  margin-top: 40px;
  color: #ffffff;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card:hover {
  transform: translateY(-5px);
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card-link {
  text-decoration: none;
  color: inherit;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card-title {
  font-size: 1.3em;
  color: #26A9E0;
  padding: 15px;
  min-height: 70px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card-meta {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px;
  margin-bottom: 10px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

.page-blog-phan-tich-keo-nha-cai-chuan__view-all-button-container {
  text-align: center;
  margin-top: 40px;
}

/* General image responsiveness */
.page-blog-phan-tich-keo-nha-cai-chuan img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Media Queries --- */

/* Desktop/Tablet common styles (up to 1024px, but main focus on 768px for mobile) */
@media (max-width: 1024px) {
  .page-blog-phan-tich-keo-nha-cai-chuan__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .page-blog-phan-tich-keo-nha-cai-chuan {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 1. 顶区轮播 (Hero Carousel) - Even if not in HTML, CSS must be present */
  .page-blog-phan-tich-keo-nha-cai-chuan__hero-carousel-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__hero-slider {
    width: 100% !important;
    height: 250px !important;
    overflow: hidden !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__hero-slide {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 - Even if not in HTML, CSS must be present */
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-box {
    padding: 10px !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important; /* Total 6 columns for layout */
    gap: 8px !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card {
    padding-top: 0 !important; /* Reset specific padding for mobile */
    flex: none !important;
    max-width: 100% !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card--pos-1,
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card--pos-2 {
    grid-column: span 3 !important; /* Two cards occupy 3 columns each (total 6) */
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card--pos-3,
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card--pos-4,
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card--pos-5 {
    grid-column: span 2 !important; /* Three cards occupy 2 columns each (total 6) */
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__guide-card img {
    aspect-ratio: 250/350 !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 3. `home_content` 外框 - Even if not in HTML, CSS must be present */
  .page-blog-phan-tich-keo-nha-cai-chuan__home-content-box {
    max-width: 100% !important;
    margin: 0 15px !important;
    height: auto !important; /* Full content visible */
    padding: 10px !important;
    border-width: 3px !important;
    box-shadow: none !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__home-content-inner {
    height: auto !important;
    overflow-y: visible !important;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__hero-section {
    margin-bottom: 20px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__hero-content {
    margin-top: -50px;
    padding: 20px 10px;
    max-width: 95%;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__main-title {
    font-size: 1.8em;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__sub-section-title {
    font-size: 1.4em;
    margin-top: 20px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__content-section p,
  .page-blog-phan-tich-keo-nha-cai-chuan__list li {
    font-size: 1em;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__cta-container {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog-phan-tich-keo-nha-cai-chuan__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 4. Blog Card Section */
  .page-blog-phan-tich-keo-nha-cai-chuan__blog-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__blog-card-image {
    height: 180px !important;
  }

  /* 5. Generic images and buttons */
  .page-blog-phan-tich-keo-nha-cai-chuan img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__section,
  .page-blog-phan-tich-keo-nha-cai-chuan__card,
  .page-blog-phan-tich-keo-nha-cai-chuan__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog-phan-tich-keo-nha-cai-chuan__cta-buttons,
  .page-blog-phan-tich-keo-nha-cai-chuan__button-group,
  .page-blog-phan-tich-keo-nha-cai-chuan__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;
    flex-direction: column !important;
  }
}