/* style/terms-conditions.css */

/* Base styles for the page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main for dark body background */
  background-color: #08160F; /* Body Background */
  line-height: 1.6;
  font-size: 16px;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure no overflow from image */
  box-sizing: border-box;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  z-index: 0;
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  margin-top: -150px; /* Adjust to slightly overlap image for visual effect, but not cover text */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-terms-conditions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-terms-conditions__section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-terms-conditions__section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  color: #F2C14E; /* Gold */
  margin-bottom: 30px;
  text-align: center;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #1E3A2A; /* Divider */
}

.page-terms-conditions__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  color: #2AD16F; /* Brighter green for sub-headings */
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__content-wrapper {
  background-color: #11271B; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #2E7A4E; /* Border */
}

.page-terms-conditions__content-wrapper p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__content-wrapper p strong {
  color: #F2C14E; /* Gold */
}

.page-terms-conditions__content-wrapper ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-terms-conditions__content-wrapper ul li {
  margin-bottom: 8px;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
  max-width: 100%; /* Ensure responsiveness */
}

/* CTA Section */
.page-terms-conditions__cta-section {
  background: linear-gradient(180deg, #11A84E 0%, #0A4B2C 100%); /* Deep Green gradient */
  padding: 60px 20px;
  text-align: center;
  margin-top: 50px;
}

.page-terms-conditions__cta-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-terms-conditions__cta-description {
  font-size: clamp(16px, 2vw, 18px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for buttons */
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%); /* Subtle hover effect */
}

.page-terms-conditions__cta-button--secondary {
  background: none;
  border: 2px solid #2AD16F;
  color: #2AD16F;
}

.page-terms-conditions__cta-button--secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding-bottom: 40px;
  }

  .page-terms-conditions__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
  }

  .page-terms-conditions__main-title {
    font-size: 28px;
  }

  .page-terms-conditions__description {
    font-size: 16px;
  }

  .page-terms-conditions__section {
    padding: 30px 15px;
  }

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

  .page-terms-conditions__sub-title {
    font-size: 20px;
    margin-top: 30px;
  }

  .page-terms-conditions__content-wrapper {
    padding: 20px;
  }

  /* Mobile image and button responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-terms-conditions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0; /* Stack buttons vertically */
  }

  .page-terms-conditions__cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-content {
    margin-top: -60px;
  }
}