.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

.page-terms-conditions .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-terms-conditions .terms-hero {
  position: relative;
  width: 100%;
  height: 400px; /* Chiều cao cố định cho banner */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--auxiliary-color); /* Fallback màu nền */
}

.page-terms-conditions .terms-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-terms-conditions .terms-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(139, 0, 0, 0.7));
  z-index: 2;
}

.page-terms-conditions .terms-hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  padding: 20px;
}

.page-terms-conditions .terms-hero-content h1 {
  font-size: 3.5em;
  margin-bottom: 10px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-terms-conditions .terms-hero-content p {
  font-size: 1.2em;
  color: #f0f0f0;
}

.page-terms-conditions .terms-section {
  background-color: #ffffff;
  margin-bottom: 25px;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions .terms-section h2 {
  font-size: 2.2em;
  color: var(--auxiliary-color);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  font-weight: bold;
}

.page-terms-conditions .terms-section h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions .terms-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #555555;
}

.page-terms-conditions .terms-section ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-terms-conditions .terms-section ul li {
  margin-bottom: 8px;
  color: #555555;
}

.page-terms-conditions a {
  color: var(--auxiliary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions a:hover {
  text-decoration: underline;
  color: var(--primary-color);
}

.page-terms-conditions .cta-box {
  background-color: #fff3e0; /* Màu nền nhẹ nhàng, tương phản với vàng */
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  margin-top: 30px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-terms-conditions .cta-box p {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #666666;
}

.page-terms-conditions .cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions .cta-button:hover {
  background: var(--auxiliary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-terms-conditions .faq-section {
  background-color: #f0f0f0;
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions .faq-section h2 {
  text-align: center;
  margin-bottom: 30px;
  color: var(--auxiliary-color);
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 10px;
}

.page-terms-conditions .faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.page-terms-conditions .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-terms-conditions .faq-question:hover {
  background: #f5f5f5;
}

.page-terms-conditions .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: #333333;
  flex-grow: 1;
}

.page-terms-conditions .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
  margin-left: 15px;
}

.page-terms-conditions .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--auxiliary-color);
}

.page-terms-conditions .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 20px;
  background: #f9f9f9;
  color: #555555;
}

.page-terms-conditions .faq-item.active .faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 15px 20px;
}

.page-terms-conditions .faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions .terms-hero-content h1 {
    font-size: 3em;
  }
  .page-terms-conditions .terms-hero-content p {
    font-size: 1.1em;
  }
  .page-terms-conditions .terms-section h2 {
    font-size: 2em;
  }
  .page-terms-conditions .terms-section h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions .terms-hero {
    height: 300px;
  }
  .page-terms-conditions .terms-hero-content h1 {
    font-size: 2.5em;
  }
  .page-terms-conditions .terms-hero-content p {
    font-size: 1em;
  }
  .page-terms-conditions .terms-section {
    padding: 20px;
  }
  .page-terms-conditions .terms-section h2 {
    font-size: 1.8em;
  }
  .page-terms-conditions .terms-section h3 {
    font-size: 1.3em;
  }
  .page-terms-conditions .cta-button {
    padding: 10px 25px;
    font-size: 1em;
  }
  .page-terms-conditions .faq-question {
    padding: 12px 15px;
  }
  .page-terms-conditions .faq-question h3 {
    font-size: 1em;
  }
  .page-terms-conditions .faq-toggle {
    font-size: 20px;
  }
  .page-terms-conditions .faq-answer {
    padding: 0 15px;
  }
  .page-terms-conditions .faq-item.active .faq-answer {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions .terms-hero {
    height: 250px;
  }
  .page-terms-conditions .terms-hero-content h1 {
    font-size: 2em;
  }
  .page-terms-conditions .terms-hero-content p {
    font-size: 0.9em;
  }
  .page-terms-conditions .container {
    padding: 10px;
  }
  .page-terms-conditions .terms-section h2 {
    font-size: 1.5em;
    text-align: center;
  }
  .page-terms-conditions .terms-section h3 {
    font-size: 1.2em;
  }
  .page-terms-conditions .cta-box p {
    font-size: 0.95em;
  }
  .page-terms-conditions .cta-button {
    padding: 8px 20px;
    font-size: 0.9em;
  }
  .page-terms-conditions .faq-section h2 {
    font-size: 1.6em;
  }
  .page-terms-conditions .faq-question h3 {
    font-size: 0.95em;
  }
}