/* style/terms-conditions.css */

/* General Styles for the Terms and Conditions Page */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0d0d0d; /* Inherited from shared.css, dark background */
  padding-top: 120px; /* Spacing for fixed header */
}

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

.page-terms-conditions__hero-banner {
    background: linear-gradient(135deg, #003366, #FFCC00); /* Brand colors */
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.page-terms-conditions__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

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

.page-terms-conditions__subtitle {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-terms-conditions__hero-btn:hover {
    background-color: #e6b800;
    transform: translateY(-3px);
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FFCC00; /* Accent color for main titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
}

.page-terms-conditions__sub-section-title {
  font-size: 1.8em;
  color: #FFCC00; /* Accent color for sub titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions__introduction-section {
  padding: 60px 0;
  background-color: #003366; /* Main brand color for introduction */
  color: #ffffff;
}

.page-terms-conditions__introduction-section p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-terms-conditions__introduction-section a {
    color: #FFCC00;
    text-decoration: none;
    font-weight: bold;
}

.page-terms-conditions__introduction-section a:hover {
    text-decoration: underline;
}

.page-terms-conditions__content-area {
  padding: 60px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for content */
  color: #f0f0f0;
}

.page-terms-conditions__content-area p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

.page-terms-conditions__content-area ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-terms-conditions__content-area li {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-terms-conditions__content-area a {
    color: #FFCC00;
    text-decoration: none;
    font-weight: bold;
}

.page-terms-conditions__content-area a:hover {
    text-decoration: underline;
}

/* Image Styling */
.page-terms-conditions__image-wrapper {
    margin: 30px 0;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-terms-conditions__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    object-fit: cover;
}

/* FAQ Section Styles */
.page-terms-conditions__faq-section {
  margin-top: 40px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #2a2a2a;
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #003366; /* Dark blue for question background */
  border: 1px solid #FFCC00; /* 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: #004488;
  border-color: #e6b800;
}

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

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none;
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFCC00; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  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); /* Change to X or rotate */
}

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background-color: #2a2a2a; /* Darker background for answer */
  color: #f0f0f0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions {
    padding-top: 100px; /* Adjust for tablet fixed header */
  }
  .page-terms-conditions__main-title {
    font-size: 2.8em;
  }
  .page-terms-conditions__subtitle {
    font-size: 1.1em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__sub-section-title {
    font-size: 1.6em;
  }
  .page-terms-conditions__hero-banner {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 80px; /* Adjust for mobile fixed header */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-terms-conditions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-terms-conditions__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-terms-conditions__hero-btn {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .page-terms-conditions__sub-section-title {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-terms-conditions__introduction-section, .page-terms-conditions__content-area {
    padding: 40px 0;
  }
  .page-terms-conditions__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
}