/* style/terms-conditions.css */

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  overflow: hidden;
  color: #F2FFF6;
  background-color: #08160F;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-terms-conditions__hero-content {
  position: relative;
  max-width: 900px;
  margin: 20px auto 0 auto;
  text-align: center;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Text Main for content */
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #F2C14E; /* Gold color for section titles */
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  line-height: 1.3;
}

.page-terms-conditions__sub-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #22C768; /* Secondary color for sub-titles */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-terms-conditions p a {
  color: #2AD16F;
  text-decoration: underline;
}

.page-terms-conditions p a:hover {
  color: #57E38D;
}

.page-terms-conditions__text-highlight {
  color: #F2C14E;
  font-weight: bold;
}

.page-terms-conditions__divider {
  height: 1px;
  background-color: #1E3A2A; /* Divider color */
  margin: 50px auto;
  width: 80%;
}

/* Call to Action Section at the bottom */
.page-terms-conditions__cta-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 80px 20px;
  background-color: #11271B; /* Card BG color */
  color: #F2FFF6;
  border-top: 1px solid #2E7A4E; /* Border color */
}

.page-terms-conditions__cta-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-terms-conditions__cta-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: #F2C14E;
  margin-bottom: 20px;
}

.page-terms-conditions__cta-description {
  font-size: 1.1rem;
  color: #A7D9B8;
  margin-bottom: 30px;
}

.page-terms-conditions__cta-description a {
  color: #2AD16F;
  text-decoration: underline;
}

.page-terms-conditions__cta-description a:hover {
  color: #57E38D;
}

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

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-terms-conditions__btn-secondary {
  background: transparent;
  color: #2AD16F;
  border-color: #2AD16F;
}

.page-terms-conditions__btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(42, 209, 111, 0.1);
  border-color: #57E38D;
  color: #57E38D;
}

.page-terms-conditions__cta-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__cta-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding-bottom: 30px;
  }

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

  .page-terms-conditions__hero-content {
    margin-top: 15px;
    padding: 0 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 2rem;
  }

  .page-terms-conditions__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-terms-conditions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

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

  .page-terms-conditions__divider {
    margin: 40px auto;
    width: 90%;
  }

  .page-terms-conditions__cta-section {
    padding: 60px 15px;
    flex-direction: column;
    gap: 30px;
  }

  .page-terms-conditions__cta-content {
    max-width: 100%;
  }

  .page-terms-conditions__cta-title {
    font-size: 1.8rem;
  }

  .page-terms-conditions__cta-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    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-image-wrapper {
    max-width: 100%;
  }

  /* Mobile image, video, and container fix */
  .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__hero-image-wrapper,
  .page-terms-conditions__cta-image-wrapper,
  .page-terms-conditions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-terms-conditions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
}