:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-light: #f8f9fa;
  --bg-dark-1: #0d0d0d; /* Assuming from shared.css for body background */
  --border-color: #e0e0e0;
}

/* Base page styling, accounting for fixed header */
.page-terms-conditions {
  color: var(--text-light); /* Default text color for the page content, assuming dark body bg */
  background-color: var(--bg-dark-1); /* Match body background from shared.css */
  padding-top: 180px; /* Desktop: Adjust for fixed header */
}

@media (max-width: 768px) {
  .page-terms-conditions {
    padding-top: 140px; /* Mobile: Adjust for fixed header */
  }
}

/* Hero Section */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background-color: var(--bg-dark-1); /* Ensure it contrasts with the image and text */
  color: var(--text-light); /* Text on the hero section */
}

.page-terms-conditions__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-terms-conditions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-terms-conditions__main-title {
  font-size: 4em;
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.2;
  color: var(--primary-color); /* Use primary color for main title */
}

.page-terms-conditions__hero-description {
  font-size: 1.5em;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  color: var(--text-light);
}

/* Main Content Section */
.page-terms-conditions__content-section {
  padding: 60px 0;
  background-color: var(--bg-light); /* Light background for readability of terms */
  color: var(--text-dark); /* Dark text on light background */
}

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

.page-terms-conditions__article {
  background: #ffffff;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-terms-conditions__article h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-terms-conditions__article p {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 15px;
}

.page-terms-conditions__article ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-terms-conditions__article li {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 8px;
}

.page-terms-conditions__article a {
  color: var(--secondary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-terms-conditions__article a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* CTA Button Styling */
.page-terms-conditions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.page-terms-conditions__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__cta-button--small {
  font-size: 0.95em;
  padding: 10px 20px;
  margin: 8px 8px 8px 0; /* Added margin-right to separate multiple buttons */
  white-space: normal;
  word-wrap: break-word;
  margin-top: 15px; /* Adjust margin-top for small buttons */
}

/* FAQ Section */
.page-terms-conditions__faq-section {
  margin-top: 60px;
  padding: 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__faq-section .page-terms-conditions__section-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-terms-conditions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-terms-conditions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--bg-light); /* Use light background for answer text */
  border-radius: 0 0 5px 5px;
  color: var(--text-dark); /* Dark text on light background */
}

.page-terms-conditions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: var(--text-dark); /* Dark text on light background */
}

.page-terms-conditions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-terms-conditions__faq-question:active {
  background: #eeeeee;
}

.page-terms-conditions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color); /* Dark blue for question titles */
}

.page-terms-conditions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-terms-conditions__faq-item.active .page-terms-conditions__faq-toggle {
  color: var(--secondary-color); /* Dark blue when active */
}

/* Responsive design for Hero */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
  }
  
  .page-terms-conditions__hero-image img {
    border-radius: 4px;
  }
  
  .page-terms-conditions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }
  .page-terms-conditions__hero-description {
    font-size: 1.2em;
  }
}

/* Responsive design for Main Content */
@media (max-width: 768px) {
  .page-terms-conditions__article {
    padding: 20px;
  }
  .page-terms-conditions__section-title {
    font-size: 2em;
  }
  .page-terms-conditions__article h3 {
    font-size: 1.5em;
  }
  .page-terms-conditions__article p,
  .page-terms-conditions__article li {
    font-size: 1em;
  }
  .page-terms-conditions__cta-button {
    width: auto; /* Allow buttons to size naturally */
    display: block; /* Stack buttons vertically on mobile */
    margin: 10px auto; /* Center them */
    max-width: 250px; /* Limit width */
  }
  .page-terms-conditions__cta-button--small {
    font-size: 0.85em;
    padding: 8px 15px;
    margin: 6px auto;
  }
}

/* Responsive design for FAQ */
@media (max-width: 768px) {
  .page-terms-conditions__faq-section {
    padding: 20px;
    margin-top: 40px;
  }
  .page-terms-conditions__faq-section .page-terms-conditions__section-title {
    font-size: 1.8em;
  }
  .page-terms-conditions__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-terms-conditions__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-terms-conditions__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-terms-conditions__faq-answer {
    padding: 0 15px;
  }
  .page-terms-conditions__faq-item.active .page-terms-conditions__faq-answer {
    padding: 15px !important;
  }
}