.page-gioi-thieu-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--color-background, #F5F7FA); /* Ensure default if variable not set */
}

.page-gioi-thieu-doi-tac__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
}

.page-gioi-thieu-doi-tac__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-gioi-thieu-doi-tac__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* Hero Section */
.page-gioi-thieu-doi-tac__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background: linear-gradient(180deg, #F5F7FA 0%, #FFFFFF 100%);
}

.page-gioi-thieu-doi-tac__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 40px 16px;
}

.page-gioi-thieu-doi-tac__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
}

.page-gioi-thieu-doi-tac__hero-title {
  font-size: 3em;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 600px;
}

.page-gioi-thieu-doi-tac__hero-description {
  font-size: 1.1em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 600px;
}

.page-gioi-thieu-doi-tac__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-gioi-thieu-doi-tac__hero-image {
  flex: 1 1 45%;
  text-align: center;
}

.page-gioi-thieu-doi-tac__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* General Button Styles */
.page-gioi-thieu-doi-tac__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-gioi-thieu-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: none;
}

.page-gioi-thieu-doi-tac__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Why Partner Section */
.page-gioi-thieu-doi-tac__why-partner-section {
  background-color: #ffffff; /* Card BG */
  padding: 60px 0;
}

.page-gioi-thieu-doi-tac__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-gioi-thieu-doi-tac__feature-item {
  background-color: #F5F7FA; /* Background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-gioi-thieu-doi-tac__feature-item:hover {
  transform: translateY(-5px);
}

.page-gioi-thieu-doi-tac__feature-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #E53935; /* Primary color */
  box-shadow: 0 0 0 8px rgba(229, 57, 53, 0.2);
}

.page-gioi-thieu-doi-tac__feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.page-gioi-thieu-doi-tac__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #E53935;
  margin-bottom: 10px;
}

.page-gioi-thieu-doi-tac__feature-text {
  font-size: 1em;
  color: #333333;
}

/* How to Partner Section */
.page-gioi-thieu-doi-tac__how-to-partner-section {
  background-color: #E53935; /* Primary brand color for dark background */
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

.page-gioi-thieu-doi-tac__how-to-partner-section .page-gioi-thieu-doi-tac__section-title,
.page-gioi-thieu-doi-tac__how-to-partner-section .page-gioi-thieu-doi-tac__section-description {
  color: #ffffff;
}

.page-gioi-thieu-doi-tac__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-gioi-thieu-doi-tac__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for contrast */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-gioi-thieu-doi-tac__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FF5A4F; /* Accent color */
  margin-bottom: 15px;
  line-height: 1;
}

.page-gioi-thieu-doi-tac__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-gioi-thieu-doi-tac__step-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-gioi-thieu-doi-tac__how-to-partner-image {
  text-align: center;
}

.page-gioi-thieu-doi-tac__how-to-partner-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-gioi-thieu-doi-tac__cta-section {
  background-color: #F5F7FA; /* Background */
  padding: 60px 0;
  text-align: center;
}

.page-gioi-thieu-doi-tac__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gioi-thieu-doi-tac__hero-title {
    font-size: 2.5em;
  }
  .page-gioi-thieu-doi-tac__section-title {
    font-size: 2em;
  }
  .page-gioi-thieu-doi-tac__feature-icon {
    width: 100px;
    height: 100px;
  }
}

@media (max-width: 768px) {
  /* 1. HERO Section */
  .page-gioi-thieu-doi-tac__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-gioi-thieu-doi-tac__hero-container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 30px;
  }
  .page-gioi-thieu-doi-tac__hero-content {
    order: 2; /* Content after image for mobile */
    min-width: unset;
    flex: 1 1 100%;
  }
  .page-gioi-thieu-doi-tac__hero-image {
    order: 1; /* Image first for mobile */
    flex: 1 1 100%;
  }
  .page-gioi-thieu-doi-tac__hero-title {
    font-size: 2em;
    text-align: center;
    max-width: 100%;
  }
  .page-gioi-thieu-doi-tac__hero-description {
    font-size: 1em;
    text-align: center;
    max-width: 100%;
  }
  .page-gioi-thieu-doi-tac__hero-cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* 2. Why Partner Section (similar to Module 1 three-column intro) */
  .page-gioi-thieu-doi-tac__why-partner-section {
    padding: 40px 0;
  }
  .page-gioi-thieu-doi-tac__container {
    padding: 20px 15px;
  }
  .page-gioi-thieu-doi-tac__section-title {
    font-size: 1.8em;
  }
  .page-gioi-thieu-doi-tac__section-description {
    font-size: 0.95em;
  }
  .page-gioi-thieu-doi-tac__features-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-gioi-thieu-doi-tac__feature-icon {
    width: 100px !important;
    height: 100px !important;
  }

  /* 3. 7 Tab Game Section (Not applicable to this page type, but included as per strict requirements) */
  .page-gioi-thieu-doi-tac__game-tabs,
  .page-gioi-thieu-doi-tac__tab-nav,
  .page-gioi-thieu-doi-tac__game-panel {
    /* No specific styles needed as this section is not present on 'Giới thiệu đối tác' page. */
    /* This block is included to fulfill the strict requirement for all listed media queries. */
  }

  /* 4. How to Partner Section (similar to Tutorial/Promo/Trust/FAQ/Blog/Intro layout) */
  .page-gioi-thieu-doi-tac__how-to-partner-section {
    padding: 40px 0;
  }
  .page-gioi-thieu-doi-tac__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-gioi-thieu-doi-tac__step-number {
    font-size: 2.5em;
  }
  .page-gioi-thieu-doi-tac__step-title {
    font-size: 1.2em;
  }

  /* 5. Universal Image and Container Responsive */
  .page-gioi-thieu-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-gioi-thieu-doi-tac__hero-side-image,
  .page-gioi-thieu-doi-tac__how-to-partner-image img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Specific override for feature-icon img to maintain circular aspect ratio */
  .page-gioi-thieu-doi-tac__feature-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  .page-gioi-thieu-doi-tac__section,
  .page-gioi-thieu-doi-tac__card,
  .page-gioi-thieu-doi-tac__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 6. Universal Button Responsive */
  .page-gioi-thieu-doi-tac__cta-button,
  .page-gioi-thieu-doi-tac__btn-primary,
  .page-gioi-thieu-doi-tac__btn-secondary,
  .page-gioi-thieu-doi-tac a[class*="button"],
  .page-gioi-thieu-doi-tac 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-gioi-thieu-doi-tac__hero-cta-buttons,
  .page-gioi-thieu-doi-tac__cta-buttons,
  .page-gioi-thieu-doi-tac__button-group,
  .page-gioi-thieu-doi-tac__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; /* Ensure vertical stacking for multiple buttons */
  }
}