:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background-color: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong {
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--background-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--background-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-group {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-side-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.2);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__content-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__dark-bg {
  background-color: var(--card-bg);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__sub-title {
  font-size: clamp(1.4em, 2.5vw, 1.8em);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__image-wrapper {
  text-align: center;
  margin: 40px 0;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.15);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__formula {
  font-size: 1.1em;
  font-weight: bold;
  background-color: rgba(255, 211, 107, 0.1);
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
  text-align: center;
  color: var(--primary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__table-wrapper {
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Ensure table is readable on smaller screens */
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table th,
.page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table td {
  padding: 15px;
  text-align: left;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table th {
  background-color: var(--primary-color);
  color: #0A0A0A;
  font-weight: 600;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table tbody tr:nth-child(even) {
  background-color: rgba(255, 211, 107, 0.05);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__note {
  font-style: italic;
  font-size: 0.95em;
  margin-top: 15px;
  color: var(--secondary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__list,
.page-doi-tac-dai-ly-chinh-sach-hoa-hong__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__ordered-list {
  list-style-type: decimal;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__list li,
.page-doi-tac-dai-ly-chinh-sach-hoa-hong__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-single {
  text-align: center;
  margin-top: 40px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-primary,
.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-secondary,
.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-large {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-primary {
  background: var(--button-gradient);
  color: #0A0A0A;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #0A0A0A;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-list {
  margin-top: 40px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--primary-color);
  list-style: none;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-question::-webkit-details-marker {
  display: none;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-item[open] .page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-toggle {
  transform: rotate(45deg);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-main);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-answer p {
  margin-bottom: 10px;
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--card-bg);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-bottom-section .page-doi-tac-dai-ly-chinh-sach-hoa-hong__section-title {
  color: var(--secondary-color);
}

.page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-bottom-section .page-doi-tac-dai-ly-chinh-sach-hoa-hong__text-block {
  max-width: 800px;
  margin: 0 auto 40px;
}

/* General image responsive styles */
.page-doi-tac-dai-ly-chinh-sach-hoa-hong img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__main-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__section-title {
    font-size: clamp(1.6em, 3vw, 2.2em);
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__sub-title {
    font-size: clamp(1.2em, 2.5vw, 1.6em);
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-content,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-image {
    flex: 1 1 100%;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* HERO section */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-section {
    padding-top: 10px !important; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 40px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-container {
    padding-top: 20px;
    padding-bottom: 20px;
    gap: 20px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__main-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  /* Content sections */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__content-section,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-section,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-bottom-section {
    padding: 40px 0;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 30px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__sub-title {
    font-size: clamp(1.1em, 4vw, 1.5em);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__list,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__ordered-list {
    margin-left: 15px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__list li,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__ordered-list li {
    font-size: 0.95em;
    margin-bottom: 8px;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__table-wrapper {
    margin: 20px 0;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table th,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__commission-table td {
    padding: 10px;
    font-size: 0.9em;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__note {
    font-size: 0.9em;
  }

  /* FAQ section */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-question {
    padding: 15px;
    font-size: 1em;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__faq-answer {
    padding: 0 15px 15px;
  }

  /* Buttons and containers */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-primary,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__btn-secondary,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong a[class*="button"],
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong 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;
    font-size: 1em;
  }

  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-group,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__cta-single,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__button-group,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__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;
    display: flex;
    flex-direction: column;
  }

  /* General images */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Containers with images */
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__image-wrapper,
  .page-doi-tac-dai-ly-chinh-sach-hoa-hong__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}