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

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

.page-terms-conditions__hero {
  background: linear-gradient(135deg, #FFD700, #8B0000);
  color: #1a1a1a;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-terms-conditions__title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #1a1a1a;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: bold;
}

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

.page-terms-conditions__subtitle a {
  color: #8B0000;
  text-decoration: none;
  font-weight: bold;
}

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

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background-color: #8B0000;
  color: #FFFFFF;
  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 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button:hover {
  background-color: #a00000;
  transform: translateY(-2px);
}

.page-terms-conditions__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.page-terms-conditions__section:last-of-type {
  border-bottom: none;
}

.page-terms-conditions__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-terms-conditions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 80px;
  height: 4px;
  background-color: #8B0000;
  border-radius: 2px;
}

.page-terms-conditions__content-block {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 30px;
}

.page-terms-conditions__content-block p,
.page-terms-conditions__content-block ul {
  flex: 1 1 100%; /* Default to full width for text */
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-terms-conditions__content-block h3 {
  flex: 1 1 100%;
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 25px;
  margin-bottom: 15px;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.3);
  padding-bottom: 10px;
}

.page-terms-conditions__content-block ul {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-terms-conditions__content-block ul li {
  margin-bottom: 10px;
}

.page-terms-conditions__content-block a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-terms-conditions__content-block a:hover {
  color: #8B0000;
  text-decoration: underline;
}

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

.page-terms-conditions__image--left {
  order: -1; /* Puts image on the left for LTR */
  margin-right: 30px;
  flex: 0 0 auto;
}

.page-terms-conditions__image--right {
  order: 1; /* Puts image on the right for LTR */
  margin-left: 30px;
  flex: 0 0 auto;
}

.page-terms-conditions__content-block p:first-of-type {
    margin-top: 0;
}

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

.page-terms-conditions .faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions .faq-question:hover {
  background-color: #4a4a4a;
}

.page-terms-conditions .faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700; /* Ensure high contrast */
  border-bottom: none; /* Remove border from H3 inside FAQ question */
  padding-bottom: 0;
}

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

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

.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: #2a2a2a;
  color: #f0f0f0;
}

.page-terms-conditions .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to show content */
  padding: 20px 25px;
}

.page-terms-conditions .faq-answer p {
  margin: 0 0 10px 0;
  color: #f0f0f0;
}

.page-terms-conditions .faq-answer a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-terms-conditions .faq-answer a:hover {
  text-decoration: underline;
  color: #8B0000;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions__title {
    font-size: 3em;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__content-block {
    padding: 25px;
  }
  .page-terms-conditions__image {
    max-width: 300px;
  }
  .page-terms-conditions__image--left, .page-terms-conditions__image--right {
    margin: 0 auto 20px;
    order: 0;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero {
    padding: 60px 0;
  }
  .page-terms-conditions__title {
    font-size: 2.5em;
  }
  .page-terms-conditions__subtitle {
    font-size: 1em;
  }
  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-terms-conditions__section {
    padding: 40px 0;
  }
  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-terms-conditions__content-block {
    padding: 20px;
    flex-direction: column;
    gap: 20px;
  }
  .page-terms-conditions__content-block p, .page-terms-conditions__content-block ul {
    font-size: 1em;
  }
  .page-terms-conditions__content-block h3 {
    font-size: 1.5em;
  }
  .page-terms-conditions .faq-question {
    padding: 15px 20px;
  }
  .page-terms-conditions .faq-question h3 {
    font-size: 1.1em;
  }
  .page-terms-conditions .faq-toggle {
    font-size: 20px;
  }
  .page-terms-conditions .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__title {
    font-size: 2em;
  }
  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }
  .page-terms-conditions__content-block {
    padding: 15px;
  }
  .page-terms-conditions__content-block h3 {
    font-size: 1.3em;
  }
  .page-terms-conditions .faq-question {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 15px;
  }
  .page-terms-conditions .faq-question h3 {
    margin-bottom: 8px;
  }
  .page-terms-conditions .faq-toggle {
    align-self: flex-end;
    margin-top: -30px;
  }
  .page-terms-conditions .faq-answer {
    padding: 10px 15px;
  }
}