.page-terms-conditions {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px; /* Small top padding, more bottom padding */
  background-color: #E53935; /* Main brand color for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-terms-conditions__hero-content {
  position: relative; /* Ensure content is above any background effects */
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  margin-top: -100px; /* Pull content slightly over the image for visual hierarchy */
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent background for readability */
  border-radius: 8px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.page-terms-conditions__subtitle {
  font-size: clamp(1em, 1.5vw, 1.3em);
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-terms-conditions__section {
  padding: 60px 20px;
  background-color: #FFFFFF; /* Card BG */
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border: 1px solid #E0E0E0;
}

.page-terms-conditions__section:last-of-type {
  margin-bottom: 0;
}

.page-terms-conditions__introduction-section {
  background-color: #F5F7FA;
  border: none;
  box-shadow: none;
}

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

.page-terms-conditions__heading {
  font-size: 2.2em;
  font-weight: 600;
  margin-bottom: 30px;
  color: #E53935; /* Main brand color */
  border-bottom: 2px solid #FF5A4F;
  padding-bottom: 10px;
}

.page-terms-conditions__sub-heading {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #333333;
}

.page-terms-conditions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #333333; /* Text Main */
  line-height: 1.7;
}

.page-terms-conditions__text-block a {
  color: #E53935;
  text-decoration: underline;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 30px;
  max-width: 40%;
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 30px;
  max-width: 40%;
}

.page-terms-conditions__dark-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Brand gradient */
  color: #ffffff; /* White text on dark background */
  border: none;
}

.page-terms-conditions__dark-section .page-terms-conditions__heading,
.page-terms-conditions__dark-section .page-terms-conditions__sub-heading,
.page-terms-conditions__dark-section .page-terms-conditions__text-block {
  color: #ffffff;
}

.page-terms-conditions__dark-section .page-terms-conditions__heading {
  border-bottom-color: #ffffff;
}

.page-terms-conditions__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.6);
}

.page-terms-conditions__btn-secondary {
  background-color: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__btn-secondary:hover {
  transform: translateY(-3px);
  background-color: #f0f0f0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.page-terms-conditions__contact-item {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #333333;
}

.page-terms-conditions__contact-item a {
  color: #E53935;
  text-decoration: none;
}

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

.page-terms-conditions__faq-list {
  margin-top: 30px;
}

.page-terms-conditions__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For details/summary */
}

.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-terms-conditions__faq-qtext {
  flex-grow: 1;
}

.page-terms-conditions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-terms-conditions__faq-item[open] .page-terms-conditions__faq-toggle {
  transform: rotate(45deg);
}

.page-terms-conditions__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #555555;
  background-color: #ffffff;
}

.page-terms-conditions__faq-answer p {
  margin-bottom: 0;
}

/* Clearfix for floated images */
.page-terms-conditions__container::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin: 20px auto;
    max-width: 60%;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 10px 0 20px;
  }

  .page-terms-conditions__hero-image-wrapper {
    max-height: 300px;
  }

  .page-terms-conditions__hero-content {
    margin-top: -60px;
    padding: 15px;
  }

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

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

  .page-terms-conditions__section {
    padding: 30px 15px;
    margin-bottom: 15px;
  }

  .page-terms-conditions__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-terms-conditions__text-block,
  .page-terms-conditions__contact-item,
  .page-terms-conditions__faq-answer {
    font-size: 0.95em;
  }

  .page-terms-conditions__image,
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    float: none;
    margin: 20px auto;
  }

  .page-terms-conditions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-terms-conditions__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-terms-conditions__faq-item,
  .page-terms-conditions__section,
  .page-terms-conditions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

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

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

  .page-terms-conditions__hero-content {
    margin-top: -40px;
  }
}