/* style/terms-conditions.css */

/* Variables for colors */
:root {
  --primary-color: #0A2463; /* Deep Tech Blue */
  --secondary-color: #E3B505; /* Bright Golden Yellow */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

/* Hero Section */
.page-terms-conditions__hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  padding: 80px 20px;
  color: var(--text-light);
  text-align: center;
}

.page-terms-conditions__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-terms-conditions__title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light); /* Ensure high contrast */
  line-height: 1.2;
}

.page-terms-conditions__subtitle {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9); /* Slightly less bright for subtitle */
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Contrast with secondary-color */
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  background-color: #f0c94b; /* Slightly lighter golden yellow */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Section */
.page-terms-conditions__content-section {
  padding: 50px 0;
  background-color: var(--bg-white);
}

.page-terms-conditions__heading {
  font-size: 2em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  font-weight: bold;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  font-size: 1em;
  color: var(--text-dark);
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

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

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below image */
  margin: 0 auto; /* Center image */
}

/* FAQ Section */
.page-terms-conditions__faq-list {
  margin-top: 30px;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  overflow: hidden; /* For smooth max-height transition */
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: var(--bg-white);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 20px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 15px;
  background: var(--bg-light);
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer p {
  margin: 0;
  color: var(--text-dark);
  font-size: 0.95em;
}

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

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

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

  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-terms-conditions__content-section {
    padding: 30px 0;
  }

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

  .page-terms-conditions__paragraph,
  .page-terms-conditions__list li {
    font-size: 0.95em;
  }

  .faq-question {
    padding: 12px;
  }

  .faq-question h3 {
    font-size: 1em;
  }

  .faq-toggle {
    font-size: 18px;
  }

  .faq-answer {
    padding: 0 12px;
  }

  .faq-item.active .faq-answer {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__title {
    font-size: 1.8em;
  }

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

  .page-terms-conditions__cta-button {
    font-size: 0.9em;
    padding: 10px 25px;
  }

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