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

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

.page-terms-conditions .terms-hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  margin-bottom: 40px;
}

.page-terms-conditions .terms-hero-section h1 {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions .terms-hero-section p {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #ffffff;
}

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

.page-terms-conditions .cta-button:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions .terms-content-section {
  display: flex;
  gap: 30px;
  padding-bottom: 60px;
}

.page-terms-conditions .terms-navigation {
  flex: 0 0 250px;
  background-color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  align-self: flex-start;
  position: sticky;
  top: 20px; /* Adjust as needed for header height */
}

.page-terms-conditions .terms-navigation h3 {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.page-terms-conditions .terms-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-terms-conditions .terms-navigation li {
  margin-bottom: 10px;
}

.page-terms-conditions .terms-navigation a {
  text-decoration: none;
  color: #555555;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
  display: block;
  padding: 5px 0;
}

.page-terms-conditions .terms-navigation a:hover,
.page-terms-conditions .terms-navigation a.active {
  color: var(--primary-color);
  transform: translateX(5px);
}

.page-terms-conditions .terms-main-text {
  flex-grow: 1;
}

.page-terms-conditions .terms-section {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.page-terms-conditions .terms-section h2 {
  font-size: 2.2em;
  color: var(--secondary-color);
  margin-bottom: 25px;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 15px;
}

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

.page-terms-conditions .terms-section p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
}

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

.page-terms-conditions .section-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin: 20px auto 30px auto;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-terms-conditions .terms-content-section {
    flex-direction: column;
  }

  .page-terms-conditions .terms-navigation {
    flex: none;
    width: 100%;
    position: static;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-terms-conditions .terms-hero-section {
    padding: 60px 15px;
  }

  .page-terms-conditions .terms-hero-section h1 {
    font-size: 2.5em;
  }

  .page-terms-conditions .terms-hero-section p {
    font-size: 1em;
  }

  .page-terms-conditions .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }

  .page-terms-conditions .terms-navigation h3 {
    font-size: 1.3em;
  }

  .page-terms-conditions .terms-navigation a {
    font-size: 0.95em;
  }

  .page-terms-conditions .terms-section {
    padding: 20px;
  }

  .page-terms-conditions .terms-section h2 {
    font-size: 1.8em;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions .terms-hero-section h1 {
    font-size: 2em;
  }

  .page-terms-conditions .terms-hero-section p {
    font-size: 0.9em;
  }

  .page-terms-conditions .cta-button {
    padding: 10px 25px;
    font-size: 0.9em;
  }

  .page-terms-conditions .terms-section h2 {
    font-size: 1.5em;
  }

  .page-terms-conditions .terms-navigation h3 {
    font-size: 1.2em;
  }
}