/* style/terms-conditions.css */

/* Base Styles for Terms and Conditions Page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Matches body background */
}

.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%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #000000;
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-terms-conditions__hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  padding: 40px 0;
}

.page-terms-conditions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FF0000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-terms-conditions__hero-description {
  font-size: 1.3em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #f0f0f0;
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #2a2a2a; /* Slightly lighter dark background for content */
  color: #f0f0f0; /* Light text for content */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  margin-top: -80px; /* Overlap with hero for visual flow */
  position: relative;
  z-index: 3;
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FF0000;
  margin-top: 40px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(255, 0, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions h3 {
  font-size: 1.6em;
  color: #FF0000;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions__text-block {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

.page-terms-conditions__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #cccccc;
}

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

.page-terms-conditions__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  display: block;
  object-fit: cover;
  max-width: 800px; /* Recommended size for content images */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  text-align: center;
}

.page-terms-conditions__btn-primary {
  background-color: #FF0000;
  color: #ffffff;
  border: 2px solid #FF0000;
  margin-right: 15px;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e60000;
  border-color: #e60000;
}

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

.page-terms-conditions__btn-secondary:hover {
  background-color: #FF0000;
  color: #ffffff;
}

.page-terms-conditions__contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
  align-items: flex-start;
}

.page-terms-conditions__faq-image {
  flex: 1 1 400px;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
}

.page-terms-conditions__faq-items {
  flex: 2 1 600px;
  max-width: calc(100% - 440px); /* Adjust for image and gap */
}

.page-terms-conditions__faq-item {
  background-color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #000000;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  color: #FF0000; /* Ensure good contrast for FAQ questions */
  font-size: 1.2em;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FF0000;
  transition: transform 0.3s ease;
}

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

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-terms-conditions__faq-answer p {
  margin: 0;
  padding-top: 10px;
  color: #cccccc;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__main-title {
    font-size: 3em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__faq-items {
    max-width: 100%;
  }
  .page-terms-conditions__faq-image {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-terms-conditions__hero-section {
    min-height: 400px;
  }
  .page-terms-conditions__main-title {
    font-size: 2.2em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__content-area {
    padding: 30px 15px;
    margin-top: -50px;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__text-block,
  .page-terms-conditions__list li,
  .page-terms-conditions__faq-answer p {
    font-size: 0.95em;
  }
  .page-terms-conditions__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__faq-section {
    flex-direction: column;
    gap: 20px;
  }
  .page-terms-conditions__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-terms-conditions__faq-items {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-terms-conditions__contact-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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;
    margin-right: 0; /* Remove margin for stacked buttons */
  }
  /* Ensure all containers with images/videos/buttons are responsive */
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area,
  .page-terms-conditions__container,
  .page-terms-conditions__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .page-terms-conditions__hero-overlay .page-terms-conditions__container {
    padding: 0 15px; /* Adjust padding for mobile hero text */
  }
  .page-terms-conditions__faq-item {
    width: 100%;
  }
  .page-terms-conditions__faq-question {
    padding: 15px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px;
  }
}