.page-terms-conditions {
  background: var(--background-color, #B71C1C); /* Fallback to custom background if shared not defined */
  color: #FFF5E1; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: #7A0E0E; /* Deep Red background for hero section */
}

.page-terms-conditions__hero-image-container {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-terms-conditions__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: 44px;
  color: #FFD86A; /* Gold color for main title */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-terms-conditions__description {
  font-size: 18px;
  color: #FFF5E1; /* Light cream for description */
  margin-bottom: 30px;
}

.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Gold gradient button */
  color: #7A0E0E; /* Deep Red text for button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-terms-conditions__cta-button--gold {
  background: linear-gradient(180deg, #F4D34D 0%, #E6B800 100%);
  color: #7A0E0E;
}

.page-terms-conditions__content-section {
  padding: 40px 0;
  background: var(--background-color, #B71C1C); /* Consistent dark red background */
}

.page-terms-conditions__section-title {
  font-size: 32px;
  color: #F4D34D; /* Gold for main section titles */
  margin-top: 40px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 2px solid #D32F2F; /* Card BG color as border */
}

.page-terms-conditions__sub-title {
  font-size: 24px;
  color: #FFD86A; /* Gold for sub titles */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-terms-conditions p {
  font-size: 16px;
  color: #FFF5E1; /* Light cream for paragraphs */
  margin-bottom: 15px;
}

.page-terms-conditions strong {
  color: #FFD86A; /* Highlight keywords with gold */
}

.page-terms-conditions__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #FFF5E1; /* Light cream for list items */
}

.page-terms-conditions__list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-terms-conditions__list li strong {
  color: #FFD86A;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-terms-conditions__image--left {
  float: left;
  margin-right: 25px;
  margin-bottom: 15px;
  max-width: 40%; /* Example for floating image */
}

.page-terms-conditions__image--right {
  float: right;
  margin-left: 25px;
  margin-bottom: 15px;
  max-width: 40%; /* Example for floating image */
}

.page-terms-conditions__cta-wrapper {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 40px;
}

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

details.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #D32F2F; /* Card BG color for border */
  overflow: hidden;
  background: #7A0E0E; /* Deep Red for FAQ item background */
  color: #FFF5E1;
}

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFD86A; /* Gold for FAQ question text */
}

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question::-webkit-details-marker {
  display: none;
}

details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question:hover {
  background: #C91F17; /* Primary color on hover */
}

.page-terms-conditions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-terms-conditions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 32px;
  text-align: center;
}

details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
  padding: 0 20px 20px;
  background: #B71C1C; /* Background color for answer */
  border-radius: 0 0 8px 8px;
  color: #FFF5E1; /* Light cream for answer text */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-terms-conditions__hero-content {
    padding: 0 15px;
  }
  .page-terms-conditions__main-title {
    font-size: 38px;
  }
  .page-terms-conditions__description {
    font-size: 17px;
  }
  .page-terms-conditions__section-title {
    font-size: 28px;
  }
  .page-terms-conditions__sub-title {
    font-size: 22px;
  }
  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    max-width: 45%;
    margin-right: 15px;
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section padding */
  .page-terms-conditions__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  /* 3. General images and containers */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-terms-conditions__image--left,
  .page-terms-conditions__image--right {
    float: none;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  /* 4. Buttons */
  .page-terms-conditions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 16px;
  }

  .page-terms-conditions__cta-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__main-title {
    font-size: 32px;
  }
  .page-terms-conditions__description {
    font-size: 16px;
  }
  .page-terms-conditions__section-title {
    font-size: 24px;
  }
  .page-terms-conditions__sub-title {
    font-size: 20px;
  }
  .page-terms-conditions p,
  .page-terms-conditions__list li {
    font-size: 15px;
  }

  details.page-terms-conditions__faq-item summary.page-terms-conditions__faq-question {
    padding: 15px;
  }
  .page-terms-conditions__faq-qtext {
    font-size: 16px;
  }
  .page-terms-conditions__faq-toggle {
    font-size: 24px;
    width: 28px;
  }
  details.page-terms-conditions__faq-item .page-terms-conditions__faq-answer {
    padding: 0 15px 15px;
  }
}