/* style/terms-conditions.css */

/* --- General Styles --- */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f8f9fa; /* Inherited from body or default */
  padding-bottom: 40px;
}

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

/* --- Hero Section --- */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: #08160F; /* Dark background for hero */
  color: #F2FFF6; /* Light text for dark background */
  overflow: hidden; /* Ensure no image overflow */
}

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

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  opacity: 0.7; /* Slightly dim the image */
  filter: none !important; /* No CSS filter for images */
}

.page-terms-conditions__hero-content {
  position: relative; /* Ensure content is above the dimmed image */
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap with image slightly for visual effect */
  background: rgba(17, 39, 27, 0.8); /* Semi-transparent Card B G */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-terms-conditions__hero-description {
  font-size: 18px;
  color: #A7D9B8;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px #57E38D; /* Glow effect */
}

/* --- Content Section --- */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background from body */
  color: #333333; /* Dark text for light background */
}

.page-terms-conditions__section-title {
  font-size: clamp(24px, 3vw, 36px);
  color: #11A84E; /* Main brand color for titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid #22C768; /* Auxiliary brand color for accent */
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333333;
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-terms-conditions__list-strong {
  color: #11A84E; /* Highlight list item strong text */
}

.page-terms-conditions__image-wrapper {
  margin: 30px 0;
  text-align: center;
  background-color: #f0f0f0; /* Light background for image container */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px; /* Match container border-radius */
  min-width: 200px;
  min-height: 200px;
  filter: none !important; /* No CSS filter for images */
}

.page-terms-conditions__link {
  color: #11A84E; /* Main brand color for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #22C768; /* Auxiliary brand color on hover */
  text-decoration: underline;
}

.page-terms-conditions__cta-bottom {
  margin-top: 50px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-terms-conditions .keyword {
  font-weight: bold;
  color: #13994A; /* Slightly darker green for keyword emphasis */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    margin-top: -100px; /* Adjust overlap for smaller screens */
    padding: 30px 15px;
  }
}

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

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

  .page-terms-conditions__hero-content {
    margin-top: -80px; /* Further adjust overlap */
    padding: 25px 15px;
    border-radius: 5px;
  }

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

  .page-terms-conditions__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-terms-conditions__btn-primary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-terms-conditions__content-section {
    padding: 40px 0;
  }

  .page-terms-conditions__section-title {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list-item {
    font-size: 15px;
  }

  .page-terms-conditions__list {
    margin-left: 20px;
  }

  /* Mobile responsive for images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* body has header-offset, this needs small top padding */
  }

  /* Mobile responsive for buttons */
  .page-terms-conditions__btn-primary,
  .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-bottom {
    margin-top: 30px;
    width: 100%; /* Make bottom CTA button full width on mobile */
  }
}

/* Ensure content area images are at least 200px */
.page-terms-conditions__image {
  min-width: 200px;
  min-height: 200px;
}