/* style/terms-conditions.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-terms-conditions {
  color: #ffffff; /* Light text for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure some space at the bottom */
}

/* Common wrapper for content to control width */
.page-terms-conditions__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #000000; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 1200px; /* Limit image width */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 8px;
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for title */
}

.page-terms-conditions__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white for subtitle */
}

/* Sections */
.page-terms-conditions__section {
  padding: 60px 0;
}

.page-terms-conditions__introduction {
  background-color: #000000; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-terms-conditions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #26A9E0; /* Brand color for section titles */
}

.page-terms-conditions__text-white {
  color: #ffffff !important; /* Ensure white text on dark backgrounds */
}

.page-terms-conditions__sub-title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for sub-titles */
}

.page-terms-conditions__text-content p {
  margin-bottom: 15px;
  color: #f0f0f0; /* Light gray for paragraph text */
}

/* Image-text block layout */
.page-terms-conditions__image-text-block {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-terms-conditions__image-text-block.page-terms-conditions__reverse-order {
  flex-direction: row-reverse; /* Image on right, text on left */
}

.page-terms-conditions__image-text-block img {
  width: 50%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
}

.page-terms-conditions__image-text-block .page-terms-conditions__text-content {
  width: 50%;
}

/* Background colors for sections */
.page-terms-conditions__dark-bg {
  background-color: #000000; /* Body background color */
  color: #ffffff; /* Light text */
}

.page-terms-conditions__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast with pure black */
  color: #ffffff; /* Light text */
}

/* Buttons */
.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Crucial for button responsiveness */
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

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

/* FAQ Section */
.page-terms-conditions__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Light bg for FAQ section */
  color: #ffffff;
}

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

.page-terms-conditions__faq-item {
  background-color: #000000; /* Dark background for FAQ item */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: #26A9E0; /* Brand color for question */
  list-style: none; /* Remove default marker for details summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
  margin-right: 10px;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #f0f0f0; /* Light gray for answer text */
}

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

/* Responsive styles */
@media (max-width: 992px) {
  .page-terms-conditions__image-text-block {
    flex-direction: column;
    gap: 30px;
  }

  .page-terms-conditions__image-text-block.page-terms-conditions__reverse-order {
    flex-direction: column; /* Keep consistent on smaller screens */
  }

  .page-terms-conditions__image-text-block img,
  .page-terms-conditions__image-text-block .page-terms-conditions__text-content {
    width: 100%;
  }
}

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

  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

  .page-terms-conditions__content-wrapper,
  .page-terms-conditions__hero-content,
  .page-terms-conditions__faq-list {
    padding: 0 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-terms-conditions__subtitle {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

  .page-terms-conditions__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .page-terms-conditions__sub-title {
    font-size: clamp(1.1rem, 4vw, 1.5rem);
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__image-text-block,
  .page-terms-conditions__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile button responsiveness */
  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* Space between stacked buttons */
  }
  
  /* Button containers for mobile */
  .page-terms-conditions__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Space between buttons */
  }

  .page-terms-conditions__hero-content .page-terms-conditions__btn-primary {
    width: 100%;
    max-width: 300px; /* Limit max width for buttons in hero */
  }

  /* For sections with single buttons */
  .page-terms-conditions__section .page-terms-conditions__btn-primary,
  .page-terms-conditions__section .page-terms-conditions__btn-secondary {
    width: 100%;
    max-width: 300px;
    margin: 20px auto 0 auto;
    display: block;
  }
}