:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-dark: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for the page */
  background-color: var(--background-dark); /* Page background */
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  padding-bottom: 40px;
  background-color: var(--deep-green); /* A darker green for the hero background */
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image wrapper */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1; /* Ensure content is above any potential background elements */
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--gold-color); /* Use gold for main title */
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow effect */
}

.page-terms-conditions__description {
  font-size: 1.1em;
  color: var(--text-secondary); /* Use secondary text color */
  margin-bottom: 30px;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
  width: 100%;
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-terms-conditions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* White-ish text on green gradient */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-terms-conditions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: var(--gold-color); /* Gold text for secondary button */
  border: 2px solid var(--gold-color);
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.3);
}

.page-terms-conditions__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--background-dark); /* Dark text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.5);
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--background-dark); /* Dark background for content area */
  color: var(--text-main); /* Light text on dark background */
}

.page-terms-conditions__dark-section {
  background-color: var(--background-dark); /* Explicitly set dark background */
  color: var(--text-main); /* Explicitly set light text */
}

.page-terms-conditions__container {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: var(--gold-color); /* Gold for section titles */
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--divider-color); /* Green divider */
  font-weight: bold;
}

.page-terms-conditions__paragraph {
  font-size: 1em;
  margin-bottom: 20px;
  color: var(--text-secondary); /* Use secondary text for paragraphs */
}

/* General image styling for content area */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 20px auto;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) - General adjustments */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

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

  .page-terms-conditions__content-area {
    padding: 40px 15px;
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.6em, 4vw, 2.2em);
    margin-top: 30px;
  }

  .page-terms-conditions__paragraph {
    font-size: 0.95em;
  }
}

/* Mobile (max-width: 768px) - Must include all required sections */
@media (max-width: 768px) {
  /* HERO Chủ đề chính */
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for smaller screens */
    margin-bottom: 10px;
  }

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

  /* Hình ảnh và container chung */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size is still met */
    min-height: 200px !important; /* Ensure min size is still met */
  }

  .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;
  }

  /* Nút và container nút */
  .page-terms-conditions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    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; /* Add padding to button content */
    padding-right: 15px;
  }

  /* Các module nội dung khác */
  .page-terms-conditions__content-area {
    padding: 30px 0; /* Adjust padding, inner container handles horizontal */
  }

  .page-terms-conditions__container {
    padding: 0 15px; /* Ensure content has side padding */
  }

  .page-terms-conditions__section-title {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__paragraph {
    font-size: 0.9em;
  }
}