.page-bang-xep-hang-nha-cai__hero-section {
  padding-top: 10px;
  padding-bottom: 60px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-bang-xep-hang-nha-cai__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 40px 16px;
  gap: 40px;
}

.page-bang-xep-hang-nha-cai__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-bang-xep-hang-nha-cai__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  line-height: 1.2;
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
}

.page-bang-xep-hang-nha-cai__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #333333;
}

.page-bang-xep-hang-nha-cai__hero-cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-bang-xep-hang-nha-cai__hero-image {
  flex: 1 1 40%;
  text-align: center;
  min-width: 280px;
}

.page-bang-xep-hang-nha-cai__hero-main-img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-bang-xep-hang-nha-cai__btn-primary,
.page-bang-xep-hang-nha-cai__btn-secondary,
.page-bang-xep-hang-nha-cai__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-bang-xep-hang-nha-cai__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-bang-xep-hang-nha-cai__btn-primary:hover {
  background: #1e87b6;
  border-color: #1e87b6;
}

.page-bang-xep-hang-nha-cai__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-bang-xep-hang-nha-cai__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87b6;
  border-color: #1e87b6;
}

.page-bang-xep-hang-nha-cai__btn-small {
  padding: 8px 15px;
  font-size: 0.9rem;
  background: #EA7C07; /* Login color for small buttons */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-bang-xep-hang-nha-cai__btn-small:hover {
  background: #c76706;
  border-color: #c76706;
}

.page-bang-xep-hang-nha-cai__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.3;
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-bang-xep-hang-nha-cai__section-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #333333;
}

.page-bang-xep-hang-nha-cai__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-bang-xep-hang-nha-cai__intro-section {
  background-color: #F8F8F8;
  color: #333333;
  padding: 60px 0;
}

.page-bang-xep-hang-nha-cai__feature-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.page-bang-xep-hang-nha-cai__feature-item {
  flex: 1 1 300px;
  max-width: 350px;
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-bang-xep-hang-nha-cai__feature-item:hover {
  transform: translateY(-5px);
}

.page-bang-xep-hang-nha-cai__icon-box-media {
  width: 180px;
  height: 180px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #26A9E0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-bang-xep-hang-nha-cai__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-bang-xep-hang-nha-cai__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-bang-xep-hang-nha-cai__feature-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555555;
}

.page-bang-xep-hang-nha-cai__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

.page-bang-xep-hang-nha-cai__dark-section .page-bang-xep-hang-nha-cai__section-title {
  color: #ffffff;
}

.page-bang-xep-hang-nha-cai__dark-section .page-bang-xep-hang-nha-cai__section-description {
  color: #f0f0f0;
}

.page-bang-xep-hang-nha-cai__criteria-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 900px;
}

.page-bang-xep-hang-nha-cai__criteria-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-bang-xep-hang-nha-cai__criteria-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-bang-xep-hang-nha-cai__criteria-item p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-bang-xep-hang-nha-cai__ranking-table-section {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

.page-bang-xep-hang-nha-cai__ranking-overview-img {
  max-width: 800px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 40px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-bang-xep-hang-nha-cai__table-wrapper {
  overflow-x: auto;
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-bang-xep-hang-nha-cai__ranking-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px; /* Ensure table is scrollable on smaller screens if needed */
}

.page-bang-xep-hang-nha-cai__ranking-table th,
.page-bang-xep-hang-nha-cai__ranking-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 15px;
  text-align: left;
  font-size: 0.95rem;
  color: #333333;
}

.page-bang-xep-hang-nha-cai__ranking-table th {
  background-color: #26A9E0;
  color: #ffffff;
  font-weight: 600;
}

.page-bang-xep-hang-nha-cai__ranking-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.page-bang-xep-hang-nha-cai__ranking-table tbody tr:hover {
  background-color: #f0f8ff;
}

.page-bang-xep-hang-nha-cai__ranking-note {
  text-align: center;
  margin-top: 25px;
  font-size: 0.9rem;
  color: #555555;
}

.page-bang-xep-hang-nha-cai__guide-section {
  padding: 60px 0;
}

.page-bang-xep-hang-nha-cai__guide-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-bang-xep-hang-nha-cai__guide-text {
  flex: 1 1 55%;
  min-width: 300px;
}

.page-bang-xep-hang-nha-cai__guide-list {
  list-style: none;
  padding: 0;
}

.page-bang-xep-hang-nha-cai__guide-list li {
  margin-bottom: 25px;
}

.page-bang-xep-hang-nha-cai__guide-list h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-bang-xep-hang-nha-cai__guide-list p {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-bang-xep-hang-nha-cai__guide-image {
  flex: 1 1 35%;
  text-align: center;
  min-width: 280px;
}

.page-bang-xep-hang-nha-cai__guide-main-img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.page-bang-xep-hang-nha-cai__faq-section {
  padding: 60px 0;
  background-color: #F8F8F8;
  color: #333333;
}

.page-bang-xep-hang-nha-cai__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-bang-xep-hang-nha-cai__faq-item {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-bang-xep-hang-nha-cai__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  list-style: none;
  outline: none;
}

.page-bang-xep-hang-nha-cai__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-bang-xep-hang-nha-cai__faq-qtext {
  flex-grow: 1;
}

.page-bang-xep-hang-nha-cai__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-bang-xep-hang-nha-cai__faq-item[open] .page-bang-xep-hang-nha-cai__faq-toggle {
  transform: rotate(45deg);
}

.page-bang-xep-hang-nha-cai__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-bang-xep-hang-nha-cai__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}

.page-bang-xep-hang-nha-cai__cta-bottom-section .page-bang-xep-hang-nha-cai__section-description {
  margin-bottom: 30px;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-bang-xep-hang-nha-cai__hero-container,
  .page-bang-xep-hang-nha-cai__container {
    padding: 30px 20px;
  }

  .page-bang-xep-hang-nha-cai__hero-content,
  .page-bang-xep-hang-nha-cai__hero-image {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-bang-xep-hang-nha-cai__hero-image {
    order: -1; /* Image above text on smaller screens */
  }

  .page-bang-xep-hang-nha-cai__hero-main-img {
    max-width: 80%;
    margin: 0 auto 20px;
  }

  .page-bang-xep-hang-nha-cai__guide-content {
    flex-direction: column;
  }

  .page-bang-xep-hang-nha-cai__guide-image {
    order: -1;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-bang-xep-hang-nha-cai__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-bang-xep-hang-nha-cai__hero-container,
  .page-bang-xep-hang-nha-cai__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-bang-xep-hang-nha-cai__hero-title {
    font-size: 2rem !important;
    text-align: center;
  }

  .page-bang-xep-hang-nha-cai__hero-description {
    font-size: 1rem !important;
    text-align: center;
  }

  .page-bang-xep-hang-nha-cai__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* Buttons */
  .page-bang-xep-hang-nha-cai__btn-primary,
  .page-bang-xep-hang-nha-cai__btn-secondary,
  .page-bang-xep-hang-nha-cai__btn-small,
  .page-bang-xep-hang-nha-cai a[class*="button"],
  .page-bang-xep-hang-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 !important;
    padding-right: 15px !important;
  }

  .page-bang-xep-hang-nha-cai__hero-cta-buttons,
  .page-bang-xep-hang-nha-cai__cta-buttons,
  .page-bang-xep-hang-nha-cai__button-group,
  .page-bang-xep-hang-nha-cai__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    display: flex;
    flex-direction: column;
  }

  /* Section Titles & Descriptions */
  .page-bang-xep-hang-nha-cai__section-title {
    font-size: 1.8rem !important;
  }

  .page-bang-xep-hang-nha-cai__section-description {
    font-size: 0.95rem !important;
  }

  /* Module 1 (Intro Section with Feature Grid) */
  .page-bang-xep-hang-nha-cai__intro-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai__feature-grid {
    flex-direction: column;
    gap: 20px;
  }

  .page-bang-xep-hang-nha-cai__feature-item {
    max-width: 100%;
  }

  .page-bang-xep-hang-nha-cai__icon-box-media {
    width: 160px !important;
    height: 160px !important;
    border-width: 3px;
  }

  /* Criteria Section */
  .page-bang-xep-hang-nha-cai__criteria-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai__criteria-item {
    padding: 20px;
  }

  .page-bang-xep-hang-nha-cai__criteria-heading {
    font-size: 1.1rem !important;
  }

  .page-bang-xep-hang-nha-cai__criteria-item p {
    font-size: 0.9rem !important;
  }

  /* Ranking Table Section */
  .page-bang-xep-hang-nha-cai__ranking-table-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai__ranking-table th,
  .page-bang-xep-hang-nha-cai__ranking-table td {
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
  }

  /* Guide Section */
  .page-bang-xep-hang-nha-cai__guide-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai__guide-list h3 {
    font-size: 1.2rem !important;
  }

  .page-bang-xep-hang-nha-cai__guide-list p {
    font-size: 0.95rem !important;
  }

  /* FAQ Section */
  .page-bang-xep-hang-nha-cai__faq-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai__faq-item summary {
    padding: 15px 20px !important;
    font-size: 1rem !important;
  }

  .page-bang-xep-hang-nha-cai__faq-answer {
    padding: 0 20px 15px !important;
    font-size: 0.95rem !important;
  }

  /* General Images */
  .page-bang-xep-hang-nha-cai img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-bang-xep-hang-nha-cai__ranking-overview-img,
  .page-bang-xep-hang-nha-cai__guide-main-img,
  .page-bang-xep-hang-nha-cai__hero-main-img {
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  /* Content area containers */
  .page-bang-xep-hang-nha-cai__section,
  .page-bang-xep-hang-nha-cai__card,
  .page-bang-xep-hang-nha-cai__container,
  .page-bang-xep-hang-nha-cai__table-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-bang-xep-hang-nha-cai__table-wrapper {
    overflow-x: auto !important; /* Allow horizontal scroll for table specifically */
    -webkit-overflow-scrolling: touch;
  }

  .page-bang-xep-hang-nha-cai__cta-bottom-section {
    padding: 40px 0 !important;
  }

  .page-bang-xep-hang-nha-cai p,
  .page-bang-xep-hang-nha-cai li {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
}