.page-terms-conditions {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #0A2463; /* Dark Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #0A2463;
  --accent-color: #dc3545; /* Red for emphasis, e.g., warnings */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-terms-conditions-hero {
  position: relative;
  width: 100%;
  height: 450px; /* Adjusted height for desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--secondary-color);
}

.page-terms-conditions-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-terms-conditions-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-terms-conditions-hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-light);
  max-width: 800px;
  padding: 20px;
}

.page-terms-conditions-hero-content h1 {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions-hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-terms-conditions-hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-terms-conditions-cta-button {
  display: inline-block;
  padding: 15px 35px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions-cta-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions-cta-button--secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-terms-conditions-cta-button--secondary:hover {
  background-color: #1a3a7c;
  color: var(--primary-color);
  border-color: #e6c200;
}

.page-terms-conditions-section {
  padding: 60px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-terms-conditions-section h2 {
  font-size: 2.2em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-terms-conditions-section h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-terms-conditions-section h3 {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

.page-terms-conditions-section p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-terms-conditions-section ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-terms-conditions-section ul li {
  margin-bottom: 8px;
  font-size: 1.1em;
  color: var(--text-dark);
}

.page-terms-conditions-section ul li strong {
  color: var(--secondary-color);
}

.page-terms-conditions-introduction, .page-terms-conditions-privacy, .page-terms-conditions-changes, .page-terms-conditions-contact {
  background-color: var(--background-light);
}

.page-terms-conditions-definitions {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-terms-conditions-definitions h2, .page-terms-conditions-definitions h3 {
  color: var(--primary-color);
}

.page-terms-conditions-definitions p {
  color: var(--text-light);
}

.page-terms-conditions-content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-terms-conditions-definition-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-terms-conditions-definition-item h3 {
  margin-top: 0;
  font-size: 1.4em;
  border-left: none;
  padding-left: 0;
  color: var(--primary-color);
}

.page-terms-conditions-image-full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

.page-terms-conditions-image-half {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-terms-conditions-image-right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  width: 45%; /* Adjust for desktop layout */
}

.page-terms-conditions-text-block {
  overflow: hidden; /* Clear float */
}

/* FAQ Styles */
.page-terms-conditions-faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: var(--background-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e9e9e9;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.25em;
  color: var(--secondary-color);
  border-left: none;
  padding-left: 0;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background-color: #fcfcfc;
  border-top: 1px solid #eee;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 20px 25px;
}

.faq-answer p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-terms-conditions-faq-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
}

.page-terms-conditions-faq-button:hover {
  background-color: #1a3a7c;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions-hero {
    height: 350px;
  }
  .page-terms-conditions-hero-content h1 {
    font-size: 2.5em;
  }
  .page-terms-conditions-hero-content p {
    font-size: 1em;
  }
  .page-terms-conditions-section h2 {
    font-size: 1.8em;
  }
  .page-terms-conditions-section h3 {
    font-size: 1.4em;
  }
  .page-terms-conditions-image-half {
    float: none;
    margin: 30px auto 0 auto;
    width: 90%;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions-hero {
    height: 300px;
    padding: 20px;
  }
  .page-terms-conditions-hero-content h1 {
    font-size: 2em;
  }
  .page-terms-conditions-hero-content p {
    font-size: 0.9em;
  }
  .page-terms-conditions-hero-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-terms-conditions-cta-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 80%;
  }
  .page-terms-conditions-section {
    padding: 40px 0;
  }
  .page-terms-conditions-section h2 {
    font-size: 1.6em;
    margin-bottom: 30px;
  }
  .page-terms-conditions-section h3 {
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 10px;
  }
  .page-terms-conditions-section p, .page-terms-conditions-section ul li {
    font-size: 0.95em;
  }
  .page-terms-conditions-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-terms-conditions-definition-item {
    padding: 20px;
  }
  .page-terms-conditions-image-half {
    width: 100%;
    height: 250px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions-hero {
    height: 250px;
  }
  .page-terms-conditions-hero-content h1 {
    font-size: 1.6em;
  }
  .page-terms-conditions-hero-content p {
    font-size: 0.85em;
    margin-bottom: 20px;
  }
  .page-terms-conditions-cta-button {
    width: 90%;
    font-size: 0.9em;
  }
  .page-terms-conditions-section h2 {
    font-size: 1.4em;
  }
  .page-terms-conditions-section h3 {
    font-size: 1.1em;
  }
  .page-terms-conditions-image-half {
    height: 200px;
  }
  .faq-question h3 {
    font-size: 1em;
  }
}