/* style/terms-conditions.css */

/* Base styles for the terms and conditions page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 20px;
}

.page-terms-conditions__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-button {
  display: inline-block;
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__hero-button:hover {
  background-color: #a00606;
}

/* Content Sections */
.page-terms-conditions__content-section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__content-section:last-of-type {
  border-bottom: none;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #017439;
  margin-bottom: 30px;
  text-align: center;
}

.page-terms-conditions__text-block {
  color: #f0f0f0;
}

.page-terms-conditions__text-block h2 {
  color: #017439;
}

.page-terms-conditions__text-block p {
  margin-bottom: 15px;
}

.page-terms-conditions__text-block strong {
  color: #ffffff;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
}

.page-terms-conditions__link {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-terms-conditions__link:hover {
  color: #004d26;
}

.page-terms-conditions__dark-section {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-terms-conditions__dark-section .page-terms-conditions__section-title {
  color: #ffffff;
}

.page-terms-conditions__dark-section .page-terms-conditions__link {
  color: #90ee90;
}

.page-terms-conditions__dark-section .page-terms-conditions__link:hover {
  color: #66cc66;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin-top: 20px;
  text-align: center;
}

.page-terms-conditions__button--register {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-terms-conditions__button--register:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-terms-conditions__button--primary {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-terms-conditions__button--primary:hover {
  background-color: #004d26;
  border-color: #004d26;
}

/* Image Styling */
.page-terms-conditions__image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__image--full-width {
  width: 100%;
  border-radius: 0;
}

.page-terms-conditions__image--small-width {
  max-width: 600px;
}

/* Video Section */
.page-terms-conditions__video-section {
  padding: 60px 0;
  text-align: center;
  background-color: #1a1a2e;
  color: #ffffff;
}

.page-terms-conditions__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Max width for the video itself */
  margin: 0 auto 20px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

.page-terms-conditions__video-caption {
  font-style: italic;
  margin-top: 10px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  color: #017439;
}

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

.page-terms-conditions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05);
  font-size: 1em;
  color: #f0f0f0;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-title {
    font-size: 3em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-terms-conditions__hero-section {
    height: 450px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-terms-conditions__hero-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__hero-button,
  .page-terms-conditions__button {
    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__container {
    padding: 0 15px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__image,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-terms-conditions__content-section,
  .page-terms-conditions__video-section,
  .page-terms-conditions__faq-section {
    padding: 40px 0;
  }
  .page-terms-conditions__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-terms-conditions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-terms-conditions__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__hero-description {
    font-size: 0.9em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
}