.page-doi-tac {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Page background */
}

.page-doi-tac__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Hero Section */
.page-doi-tac__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  background-color: #0A0A0A; /* Ensure background consistency */
}

.page-doi-tac__hero-image {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.page-doi-tac__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Default cover for desktop */
  max-height: 600px; /* Limit height for hero image */
}

.page-doi-tac__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-doi-tac__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #FFD36B; /* Glow color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-doi-tac__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-doi-tac__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-doi-tac__btn-primary,
.page-doi-tac__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%; /* Ensure button adapts */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-doi-tac__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: none;
}

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

.page-doi-tac__btn-secondary {
  background: transparent;
  color: #FFD36B; /* Glow color for text */
  border: 2px solid #FFD36B; /* Glow color for border */
}

.page-doi-tac__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1); /* Light glow background on hover */
  transform: translateY(-2px);
}

/* General Section Styling */
.page-doi-tac__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #FFD36B;
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  line-height: 1.3;
}

.page-doi-tac__text-block {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: #FFF6D6;
  text-align: justify;
}

/* Light Background Section */
.page-doi-tac__light-bg {
  background-color: #0A0A0A; /* Use page background for consistency */
  color: #FFF6D6; /* Ensure light text */
  padding: 60px 0;
}

/* Dark Background Section */
.page-doi-tac__dark-bg {
  background-color: #0A0A0A; /* Use page background for consistency */
  color: #FFF6D6; /* Ensure light text */
  padding: 60px 0;
}

/* Partner Types Section */
.page-doi-tac__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__type-card,
.page-doi-tac__step-card {
  background: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-doi-tac__type-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover;
}

.page-doi-tac__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-doi-tac__card-text {
  font-size: 1rem;
  color: #FFF6D6;
  flex-grow: 1; /* Allow text to take available space */
}

/* Benefits Section */
.page-doi-tac__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__benefit-item {
  background: #111111;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-doi-tac__benefit-item img {
  
  
  margin-bottom: 15px;
  display: inline-block; /* Center small images */
  object-fit: contain; /* Ensure small images fit */
  min-width: 200px; /* Enforce minimum size, will be scaled by CSS */
  min-height: 200px; /* Enforce minimum size, will be scaled by CSS */
}

.page-doi-tac__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #F2C14E; /* Main color */
  margin-bottom: 10px;
}

.page-doi-tac__benefit-text {
  font-size: 0.95rem;
  color: #FFF6D6;
}

/* Join Section Steps */
.page-doi-tac__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-doi-tac__step-card {
  position: relative;
  overflow: hidden;
  padding-top: 60px; /* Space for number */
}

.page-doi-tac__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFD36B;
  background: #0A0A0A;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #F2C14E;
  box-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-doi-tac__cta-area {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-doi-tac__faq-section {
  padding: 60px 0;
}

.page-doi-tac__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-doi-tac__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border from custom colors */
  overflow: hidden;
  background: #111111; /* Card BG from custom colors */
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD36B; /* Question text color */
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question::-webkit-details-marker {
  display: none;
}
details.page-doi-tac__faq-item summary.page-doi-tac__faq-question:hover {
  background: rgba(255, 211, 107, 0.05); /* Slight hover effect */
}
.page-doi-tac__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-doi-tac__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Toggle icon color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-doi-tac__faq-item .page-doi-tac__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Answer text color */
}
.page-doi-tac__faq-answer p {
  margin: 0;
}


/* Bottom CTA Section */
.page-doi-tac__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
}


/* Responsive Styles */
/* Mobile HERO image object-fit contain at 849px or below */
@media (max-width: 849px) {
  .page-doi-tac__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-height: none; /* Remove max-height constraint for contain */
  }
}

@media (max-width: 768px) {
  .page-doi-tac__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO Section */
  .page-doi-tac__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 30px;
  }
  .page-doi-tac__hero-content {
    padding: 0 15px;
  }
  .page-doi-tac__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-doi-tac__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-doi-tac__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    flex-wrap: wrap !important;
  }
  .page-doi-tac__btn-primary,
  .page-doi-tac__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-doi-tac__cta-buttons,
  .page-doi-tac__cta-area {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }


  /* General Section Title */
  .page-doi-tac__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 20px;
    padding-top: 30px;
  }

  .page-doi-tac__text-block {
    font-size: 0.95rem;
    text-align: left; /* Adjust text alignment for mobile */
  }

  /* Image and Container Responsive */
  .page-doi-tac img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-doi-tac__type-card img,
  .page-doi-tac__benefit-item img {
    min-width: 200px !important; /* Enforce minimum size for mobile */
    min-height: 200px !important;
     /* Revert to specific size for visual, but max-width handles overflow */
    
    object-fit: contain;
  }
}