/* Base Styles for page-so-sanh-nha-cai */
.page-so-sanh-nha-cai {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

.page-so-sanh-nha-cai__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-so-sanh-nha-cai__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-so-sanh-nha-cai__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #FF8C1A; /* Primary Color */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-so-sanh-nha-cai__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
}

.page-so-sanh-nha-cai__text-block a {
  color: #FFA53A; /* Accent Color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-so-sanh-nha-cai__text-block a:hover {
  color: #FFB04D; /* Glow */
  text-decoration: underline;
}

/* Hero Section */
.page-so-sanh-nha-cai__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-so-sanh-nha-cai__hero-image-wrapper {
  width: 100%;
  height: 500px;
  position: relative;
  margin-bottom: 30px;
}

.page-so-sanh-nha-cai__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Default for desktop */
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-so-sanh-nha-cai__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent dark background */
  border-radius: 10px;
}

.page-so-sanh-nha-cai__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 800;
  color: #FF8C1A; /* Primary Color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-so-sanh-nha-cai__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-so-sanh-nha-cai__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-so-sanh-nha-cai__btn-primary,
.page-so-sanh-nha-cai__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-so-sanh-nha-cai__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-so-sanh-nha-cai__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

.page-so-sanh-nha-cai__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Accent Color */
  border: 2px solid #A84F0C; /* Border */
}

.page-so-sanh-nha-cai__btn-secondary:hover {
  background: #2a2d34;
  color: #FFB04D; /* Glow */
  transform: translateY(-2px);
}

/* Text Block styles */
.page-so-sanh-nha-cai__text-block {
  max-width: 900px;
  margin: 0 auto;
  color: #FFF3E6;
}

/* Dark Background Section */
.page-so-sanh-nha-cai__dark-section {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
}

.page-so-sanh-nha-cai__dark-section .page-so-sanh-nha-cai__section-title {
  color: #FFA53A;
}

/* Light Background Section (for contrast with dark body) */
.page-so-sanh-nha-cai__light-bg {
  background-color: #0D0E12; /* Match body background */
  color: #FFF3E6; /* Ensure light text */
}

/* Criteria List */
.page-so-sanh-nha-cai__criteria-list,
.page-so-sanh-nha-cai__benefits-list,
.page-so-sanh-nha-cai__guide-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 900px;
}

.page-so-sanh-nha-cai__criteria-list li,
.page-so-sanh-nha-cai__benefits-list li,
.page-so-sanh-nha-cai__guide-list li {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #FFF3E6;
  position: relative;
  padding-left: 45px;
}

.page-so-sanh-nha-cai__criteria-list li::before,
.page-so-sanh-nha-cai__benefits-list li::before {
  content: '✓';
  color: #FFA53A; /* Accent Color */
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

.page-so-sanh-nha-cai__guide-list li::before {
  content: counter(list-item) ".";
  counter-increment: list-item;
  color: #FFA53A;
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 20px;
  font-size: 1.2em;
}

/* Comparison Table */
.page-so-sanh-nha-cai__comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px auto;
  max-width: 1000px;
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
}

.page-so-sanh-nha-cai__comparison-table th,
.page-so-sanh-nha-cai__comparison-table td {
  border: 1px solid #A84F0C; /* Border */
  padding: 15px;
  text-align: left;
  color: #FFF3E6;
}

.page-so-sanh-nha-cai__comparison-table th {
  background-color: #FF8C1A; /* Primary Color */
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
}

.page-so-sanh-nha-cai__comparison-table tr:nth-child(even) {
  background-color: rgba(255, 140, 26, 0.1); /* Slightly lighter row */
}

.page-so-sanh-nha-cai__comparison-table td:first-child {
  font-weight: 600;
  color: #FFA53A;
}

.page-so-sanh-nha-cai__comparison-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
}

.page-so-sanh-nha-cai__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
}

/* Guide CTA */
.page-so-sanh-nha-cai__guide-cta,
.page-so-sanh-nha-cai__conclusion-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
details.page-so-sanh-nha-cai__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

details.page-so-sanh-nha-cai__faq-item summary.page-so-sanh-nha-cai__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;
  color: #FFA53A;
}

details.page-so-sanh-nha-cai__faq-item summary.page-so-sanh-nha-cai__faq-question::-webkit-details-marker {
  display: none;
}

details.page-so-sanh-nha-cai__faq-item summary.page-so-sanh-nha-cai__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-so-sanh-nha-cai__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-so-sanh-nha-cai__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-so-sanh-nha-cai__faq-item .page-so-sanh-nha-cai__faq-answer {
  padding: 0 25px 20px;
  background: #0D0E12; /* Background */
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
}

/* General image responsive styles */
.page-so-sanh-nha-cai img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-so-sanh-nha-cai__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-so-sanh-nha-cai__hero-description {
    font-size: 1.1em;
  }

  .page-so-sanh-nha-cai__section-title {
    font-size: 30px;
  }

  .page-so-sanh-nha-cai__btn-primary,
  .page-so-sanh-nha-cai__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-so-sanh-nha-cai__hero-image-wrapper {
    height: 400px;
  }

  .page-so-sanh-nha-cai__comparison-table th,
  .page-so-sanh-nha-cai__comparison-table td {
    padding: 12px;
    font-size: 14px;
  }

  details.page-so-sanh-nha-cai__faq-item summary.page-so-sanh-nha-cai__faq-question {
    padding: 15px 20px;
  }

  .page-so-sanh-nha-cai__faq-qtext {
    font-size: 17px;
  }

  .page-so-sanh-nha-cai__faq-toggle {
    font-size: 24px;
  }

  details.page-so-sanh-nha-cai__faq-item .page-so-sanh-nha-cai__faq-answer {
    padding: 0 20px 15px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-so-sanh-nha-cai__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-so-sanh-nha-cai__hero-image-wrapper {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-so-sanh-nha-cai__hero-image {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
  }

  .page-so-sanh-nha-cai__hero-content {
    padding: 15px;
  }

  .page-so-sanh-nha-cai__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-so-sanh-nha-cai__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-so-sanh-nha-cai__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  /* Section titles */
  .page-so-sanh-nha-cai__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .page-so-sanh-nha-cai__section {
    padding: 40px 0;
  }

  .page-so-sanh-nha-cai__text-block p {
    font-size: 16px;
  }

  /* General image and container responsiveness */
  .page-so-sanh-nha-cai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-so-sanh-nha-cai__section,
  .page-so-sanh-nha-cai__container,
  .page-so-sanh-nha-cai__text-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and button containers */
  .page-so-sanh-nha-cai__btn-primary,
  .page-so-sanh-nha-cai__btn-secondary,
  .page-so-sanh-nha-cai a[class*="button"],
  .page-so-sanh-nha-cai 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-so-sanh-nha-cai__cta-buttons,
  .page-so-sanh-nha-cai__button-group,
  .page-so-sanh-nha-cai__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-so-sanh-nha-cai__cta-buttons {
    flex-direction: column;
  }

  /* Lists */
  .page-so-sanh-nha-cai__criteria-list li,
  .page-so-sanh-nha-cai__benefits-list li,
  .page-so-sanh-nha-cai__guide-list li {
    font-size: 1em;
    padding: 15px 15px 15px 40px;
  }

  .page-so-sanh-nha-cai__criteria-list li::before,
  .page-so-sanh-nha-cai__benefits-list li::before,
  .page-so-sanh-nha-cai__guide-list li::before {
    left: 10px;
    font-size: 1.1em;
  }

  /* Comparison Table */
  .page-so-sanh-nha-cai__comparison-table {
    display: block;
    overflow-x: auto; /* Allow horizontal scroll for table */
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-radius: 0;
    margin: 30px 0;
  }

  .page-so-sanh-nha-cai__comparison-table thead,
  .page-so-sanh-nha-cai__comparison-table tbody,
  .page-so-sanh-nha-cai__comparison-table th,
  .page-so-sanh-nha-cai__comparison-table td,
  .page-so-sanh-nha-cai__comparison-table tr {
    display: block;
  }

  .page-so-sanh-nha-cai__comparison-table th {
    text-align: center;
    position: sticky;
    left: 0;
    z-index: 1;
  }
  
  .page-so-sanh-nha-cai__comparison-table td {
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  .page-so-sanh-nha-cai__comparison-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: calc(50% - 20px);
    padding-right: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    text-align: left;
    color: #FFA53A;
  }

  .page-so-sanh-nha-cai__comparison-table tbody tr {
    margin-bottom: 10px;
    border: 1px solid #A84F0C;
    border-radius: 8px;
  }

  /* FAQ */
  details.page-so-sanh-nha-cai__faq-item summary.page-so-sanh-nha-cai__faq-question {
    padding: 15px;
  }
  .page-so-sanh-nha-cai__faq-qtext {
    font-size: 16px;
  }
  .page-so-sanh-nha-cai__faq-toggle {
    font-size: 22px;
    width: 24px;
  }
  details.page-so-sanh-nha-cai__faq-item .page-so-sanh-nha-cai__faq-answer {
    padding: 0 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-so-sanh-nha-cai__section-title {
    font-size: 22px;
  }

  .page-so-sanh-nha-cai__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

  .page-so-sanh-nha-cai__text-block p {
    font-size: 15px;
  }

  .page-so-sanh-nha-cai__btn-primary,
  .page-so-sanh-nha-cai__btn-secondary {
    font-size: 15px;
    padding: 12px 20px;
  }

  .page-so-sanh-nha-cai__hero-image-wrapper {
    height: 250px;
  }
}