/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
  color: #ffffff; /* Default text color for the page content area (body background is dark) */
  background-color: transparent; /* Assuming body background is handled by shared.css */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

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

.page-terms-conditions__dark-bg {
  background-color: #003366; /* Primary brand color for dark sections */
  color: #ffffff; /* Light text for dark background */
}

.page-terms-conditions h1,
.page-terms-conditions h2,
.page-terms-conditions h3,
.page-terms-conditions h4,
.page-terms-conditions h5,
.page-terms-conditions h6 {
  color: #FFCC00; /* Accent color for headings */
  margin-top: 1.5em;
  margin-bottom: 0.8em;
  font-weight: bold;
}
.page-terms-conditions h1 { font-size: 2.5em; }
.page-terms-conditions h2 { font-size: 2em; }
.page-terms-conditions h3 { font-size: 1.5em; }
.page-terms-conditions p {
  margin-bottom: 1em;
}
.page-terms-conditions ul {
  list-style: disc inside;
  margin-bottom: 1em;
  padding-left: 20px;
}
.page-terms-conditions ul li {
  margin-bottom: 0.5em;
}
.page-terms-conditions a {
  color: #FFCC00; /* Links in accent color */
  text-decoration: underline;
}
.page-terms-conditions a:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-terms-conditions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3; /* Make background image subtle */
}

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

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

/* General Content Area */
.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: #1a1a2e; /* Use body background color for consistency */
}

.page-terms-conditions__text-block {
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for readability */
  border-radius: 8px;
}

.page-terms-conditions__section-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFCC00;
}

.page-terms-conditions__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 30px;
  object-fit: cover; /* Ensure images cover their area */
  min-height: 250px; /* Minimum height for content images */
}

/* Buttons */
.page-terms-conditions__btn-primary {
  display: inline-block;
  background-color: #FFCC00; /* Accent color for primary button */
  color: #003366; /* Dark text for light background button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #e6b800;
  transform: translateY(-2px);
}

/* CTA Section */
.page-terms-conditions__cta-section {
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2;
}

.page-terms-conditions__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFCC00;
}

.page-terms-conditions__cta-description {
  font-size: 1.2em;
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #003366; /* Primary brand color for FAQ section */
}

.page-terms-conditions__faq-title {
  text-align: center;
  margin-bottom: 40px;
  color: #FFCC00;
}

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

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

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-terms-conditions__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: #ffffff;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFCC00; /* Accent color for toggle */
}

.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-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

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

.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
  color: #f0f0f0; /* Ensure text color is light for dark background */
}

/* --- Responsive Styles --- */

/* All images responsive base */
.page-terms-conditions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All video responsive base */
.page-terms-conditions video,
.page-terms-conditions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All video container responsive base */
.page-terms-conditions__video-section,
.page-terms-conditions__video-container,
.page-terms-conditions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* All buttons responsive base */
.page-terms-conditions__cta-button,
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary,
.page-terms-conditions a[class*="button"],
.page-terms-conditions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container responsive base */
.page-terms-conditions__cta-buttons,
.page-terms-conditions__button-group,
.page-terms-conditions__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-title {
    font-size: 2.5em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__cta-title {
    font-size: 2em;
  }
  .page-terms-conditions__cta-description {
    font-size: 1em;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
  }

  /* Images */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Image containers */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__content-block,
  .page-terms-conditions__text-block { /* Added text-block as a content container */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Videos */
  .page-terms-conditions video,
  .page-terms-conditions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers */
  .page-terms-conditions__video-section,
  .page-terms-conditions__video-container,
  .page-terms-conditions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Buttons */
  .page-terms-conditions__cta-button,
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Make buttons full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some spacing between stacked buttons */
  }
  
  /* Button containers */
  .page-terms-conditions__cta-buttons,
  .page-terms-conditions__button-group,
  .page-terms-conditions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }
  
  /* If buttons are in a flex container, stack them vertically on mobile */
  .page-terms-conditions__cta-buttons {
    display: flex;
    flex-direction: column; 
  }

  /* Fixed header offset for hero section on mobile */
  .page-terms-conditions__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}