/* style/terms-conditions.css */

/* Base styles for the terms-conditions page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Matches body background */
}

/* Fixed navigation bar spacing for the first content module */
.page-terms-conditions__hero-banner {
  padding-top: 120px; /* Adjust for fixed header height */
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-banner {
    padding-top: 100px; /* Adjust for mobile fixed header height */
  }
}

/* Hero Banner Section */
.page-terms-conditions__hero-banner {
  background: linear-gradient(135deg, #0A192F, #1e3a6a); /* Dark blue gradient */
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-terms-conditions__main-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: 700;
}

.page-terms-conditions__subtitle {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

.page-terms-conditions .text-highlight {
  color: #FFD700; /* Gold highlight */
}

/* Content Area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for content area */
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #f0f0f0; /* Light text for readability */
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px; /* Added for consistency and mobile padding */
}

.page-terms-conditions__article p {
  margin-bottom: 1em;
  font-size: 1.05em;
  line-height: 1.7;
  color: #e0e0e0;
}

.page-terms-conditions__article a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions__article a:hover {
  color: #ffd700cc;
  text-decoration: underline;
}

.page-terms-conditions__heading {
  font-size: 2.2em;
  color: #FFD700; /* Gold for main headings */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  font-size: 1.5em;
  color: #ffffff;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-terms-conditions__list li {
  margin-bottom: 8px;
  font-size: 1.05em;
}

.page-terms-conditions__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-terms-conditions__contact-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-terms-conditions__image-wrapper {
  margin: 30px 0;
  text-align: center;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  background-color: #0A192F; /* Dark background for FAQ */
  padding: 60px 20px;
  margin-top: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__faq-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for FAQ title */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

/* FAQ container styles */
.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1e3a6a; /* Darker blue for FAQ items */
}

/* FAQ default state - answer hidden */
.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #e0e0e0;
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important ensure priority, value large enough to accommodate any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #0a192f; /* Slightly lighter dark background for answer */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #0A192F; /* Dark blue for question */
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-terms-conditions__faq-question:hover {
  background: #1e3a6a; /* Lighter dark blue on hover */
  border-color: #ffd700cc;
}

.page-terms-conditions__faq-question:active {
  background: #112a4a;
}

/* Question title style */
.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: #ffffff;
}

/* Toggle icon */
.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Rotate to form 'X' or '-' */
}

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

  .page-terms-conditions__heading {
    font-size: 2em;
  }

  .page-terms-conditions__faq-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-banner {
    padding: 60px 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }

  .page-terms-conditions__subtitle {
    font-size: 1em;
  }

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

  .page-terms-conditions__heading {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__sub-heading {
    font-size: 1.3em;
  }

  .page-terms-conditions__article p,
  .page-terms-conditions__list li,
  .page-terms-conditions__contact-list li {
    font-size: 0.95em;
  }

  /* FAQ Mobile Adaptation */
  .page-terms-conditions__faq-section {
    padding: 40px 15px;
  }
  
  .page-terms-conditions__faq-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-terms-conditions__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure images do not overflow */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__main-title {
    font-size: 2em;
  }

  .page-terms-conditions__heading {
    font-size: 1.5em;
  }

  .page-terms-conditions__faq-title {
    font-size: 1.8em;
  }
}