.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

.page-terms-conditions .terms-hero-section {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.page-terms-conditions .terms-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions .terms-hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffc107;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions .terms-hero-content p {
  font-size: 1.1em;
  line-height: 1.8;
  opacity: 0.9;
}

.page-terms-conditions .terms-content-section {
  padding: 60px 0;
}

.page-terms-conditions .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
}

.page-terms-conditions .terms-navigation {
  flex: 0 0 250px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 20px; /* Adjust as needed */
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.page-terms-conditions .terms-navigation h3 {
  font-size: 1.5em;
  color: #007bff;
  margin-bottom: 20px;
  border-bottom: 2px solid #ffc107;
  padding-bottom: 10px;
}

.page-terms-conditions .terms-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-terms-conditions .terms-navigation li {
  margin-bottom: 10px;
}

.page-terms-conditions .terms-navigation a {
  text-decoration: none;
  color: #555555;
  font-size: 1em;
  display: block;
  padding: 8px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.page-terms-conditions .terms-navigation a:hover {
  background-color: #e9ecef;
  color: #007bff;
  transform: translateX(5px);
}

.page-terms-conditions .terms-article {
  flex: 1;
  background-color: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions .terms-article h2 {
  font-size: 2.2em;
  color: #007bff;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eeeeee;
}

.page-terms-conditions .terms-article h2:first-of-type {
  margin-top: 0;
}

.page-terms-conditions .terms-article h3 {
  font-size: 1.6em;
  color: #333333;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid #ffc107;
  padding-left: 15px;
}

.page-terms-conditions .terms-article p {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #444444;
}

.page-terms-conditions .terms-article ul {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 15px;
}

.page-terms-conditions .terms-article li {
  margin-bottom: 8px;
  color: #444444;
}

.page-terms-conditions .cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #007bff;
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.page-terms-conditions .cta-banner .banner-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
}

.page-terms-conditions .cta-banner .cta-content h3 {
  color: #ffc107;
  font-size: 2em;
  margin-bottom: 15px;
  border-left: none;
  padding-left: 0;
}

.page-terms-conditions .cta-banner .cta-content p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #ffffff;
  opacity: 0.9;
}

.page-terms-conditions .cta-banner .cta-button {
  display: inline-block;
  background-color: #ffc107;
  color: #007bff;
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.page-terms-conditions .cta-banner .cta-button:hover {
  background-color: #e0a800;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
}

.page-terms-conditions .content-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* FAQ Section Styling */
.page-terms-conditions .faq-container {
  margin-top: 30px;
}

.page-terms-conditions .faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-terms-conditions .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fdfdfd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-terms-conditions .faq-question:hover {
  background: #f5f5f5;
}

.page-terms-conditions .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: #333333;
  border-left: none;
  padding-left: 0;
}

.page-terms-conditions .faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #007bff;
  transition: transform 0.3s ease;
}

.page-terms-conditions .faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: #ffc107;
}

.page-terms-conditions .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #ffffff;
}

.page-terms-conditions .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to accommodate content */
  padding: 15px 25px 25px;
  border-top: 1px solid #e9ecef;
}

.page-terms-conditions .faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 1em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions .container {
    flex-direction: column;
  }

  .page-terms-conditions .terms-navigation {
    position: static;
    width: 100%;
    max-height: none;
    overflow-y: visible;
    margin-bottom: 30px;
  }

  .page-terms-conditions .terms-article {
    padding: 30px;
  }

  .page-terms-conditions .terms-hero-content h1 {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions .terms-hero-section {
    padding: 60px 15px;
  }

  .page-terms-conditions .terms-hero-content h1 {
    font-size: 2em;
  }

  .page-terms-conditions .terms-hero-content p {
    font-size: 1em;
  }

  .page-terms-conditions .terms-content-section {
    padding: 40px 0;
  }

  .page-terms-conditions .container {
    padding: 0 15px;
  }

  .page-terms-conditions .terms-navigation {
    padding: 20px;
  }

  .page-terms-conditions .terms-navigation h3 {
    font-size: 1.3em;
  }

  .page-terms-conditions .terms-navigation a {
    font-size: 0.95em;
    padding: 6px 8px;
  }

  .page-terms-conditions .terms-article {
    padding: 25px;
  }

  .page-terms-conditions .terms-article h2 {
    font-size: 1.8em;
  }

  .page-terms-conditions .terms-article h3 {
    font-size: 1.4em;
  }

  .page-terms-conditions .cta-banner {
    padding: 25px;
  }

  .page-terms-conditions .cta-banner .cta-content h3 {
    font-size: 1.6em;
  }

  .page-terms-conditions .cta-banner .cta-content p {
    font-size: 0.95em;
  }

  .page-terms-conditions .cta-banner .cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-terms-conditions .faq-question {
    padding: 15px 20px;
  }

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

  .page-terms-conditions .faq-toggle {
    font-size: 20px;
  }

  .page-terms-conditions .faq-item.active .faq-answer {
    padding: 10px 20px 20px;
  }
}

@media (max-width: 576px) {
  .page-terms-conditions .terms-hero-content h1 {
    font-size: 1.8em;
  }

  .page-terms-conditions .terms-hero-content p {
    font-size: 0.9em;
  }

  .page-terms-conditions .terms-article h2 {
    font-size: 1.6em;
  }

  .page-terms-conditions .terms-article h3 {
    font-size: 1.2em;
  }

  .page-terms-conditions .cta-banner .cta-content h3 {
    font-size: 1.4em;
  }

  .page-terms-conditions .cta-banner .cta-button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}