/* CSS cho trang Điều khoản và Điều kiện */

/* Chung cho toàn bộ trang */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding-top: 10px; /* Nhỏ hơn so với body padding-top */
  margin-bottom: 40px;
  background-color: #F5F7FA; /* Background */
}

.page-terms-conditions__hero-image {
  width: 100%;
  overflow: hidden;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: 600px; /* Chiều cao cố định cho desktop */
  object-fit: cover;
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: -200px auto 0; /* Đẩy nội dung lên trên ảnh */
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.95); /* Nền trắng hơi trong suốt */
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  font-weight: 700;
  color: #E53935; /* Chủ đề chính */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1em;
  line-height: 1.8;
  color: #333333; /* Text Main */
  margin-bottom: 30px;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Nút */
  color: #ffffff;
  border: none;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #E53935; /* Chủ đề chính */
  border: 2px solid #E53935; /* Chủ đề chính */
}

.page-terms-conditions__btn-secondary:hover {
  background: #E53935; /* Chủ đề chính */
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.2);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  line-height: 1.7;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935; /* Chủ đề chính */
  margin-bottom: 30px;
  text-align: center;
  position: relative;
}

.page-terms-conditions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-terms-conditions__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: #FF5A4F; /* Phụ đề */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333333; /* Text Main */
}

.page-terms-conditions ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333; /* Text Main */
}

.page-terms-conditions ul li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-terms-conditions__content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    margin: -150px auto 0;
    padding: 30px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }

  .page-terms-conditions__description {
    font-size: 1em;
  }

  .page-terms-conditions__section-title {
    font-size: 2.2em;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-terms-conditions__hero-section {
    padding-top: 10px; /* 约 10px 顶距 */
    margin-bottom: 20px;
  }

  .page-terms-conditions__hero-image img {
    height: 300px; /* Chiều cao nhỏ hơn cho mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__hero-content {
    margin: -80px auto 0;
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    left: 0; /* Đảm bảo căn giữa khi có padding */
    transform: none; /* Reset transform */
  }

  .page-terms-conditions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions 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-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__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;
  }

  /* Long Content Area / Generic Images */
  .page-terms-conditions__content-section {
    padding: 30px 0;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions p,
  .page-terms-conditions ul li {
    font-size: 1em;
  }

  /*通用图片与容器*/
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}