/* style/terms-conditions.css */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #FFFFFF; /* Explicitly set for content area */
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-terms-conditions__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF; /* Light text for hero overlay */
  overflow: hidden;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly dim the background image for text readability */
}

.page-terms-conditions__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Dark overlay for text contrast */
}

.page-terms-conditions__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
  max-width: 900px;
}

.page-terms-conditions__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
}

.page-terms-conditions__hero-actions {
  display: flex;
  gap: 15px;
}

.page-terms-conditions__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-terms-conditions__button--register {
  background-color: #FFFFFF; /* Register button color */
  color: #000000;
}

.page-terms-conditions__button--register:hover {
  background-color: #f0f0f0;
}

.page-terms-conditions__button--login {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
}

.page-terms-conditions__button--login:hover {
  background-color: #e0a53a;
}

.page-terms-conditions__content-area {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.page-terms-conditions__article {
  flex: 3;
}

.page-terms-conditions__sidebar {
  flex: 1;
  min-width: 280px;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  color: #000000;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 10px;
}

.page-terms-conditions__paragraph {
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__paragraph a {
  color: #FCBC45;
  text-decoration: none;
}

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

.page-terms-conditions__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-terms-conditions__sidebar-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-terms-conditions__sidebar-title {
  font-size: 1.5em;
  color: #000000;
  margin-top: 0;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.page-terms-conditions__sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-terms-conditions__sidebar-list li {
  margin-bottom: 10px;
}

.page-terms-conditions__sidebar-list a {
  color: #333333;
  text-decoration: none;
  display: block;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.page-terms-conditions__sidebar-list a:hover {
  color: #FCBC45;
}

.page-terms-conditions__button--full-width {
  width: 100%;
  text-align: center;
  background-color: #FCBC45; /* Call to action button */
  color: #000000;
  margin-top: 20px;
}

.page-terms-conditions__button--full-width:hover {
  background-color: #e0a53a;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-terms-conditions__content-area {
    flex-direction: column;
    gap: 20px;
  }

  .page-terms-conditions__sidebar {
    min-width: unset;
    width: 100%;
  }
}

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

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

  .page-terms-conditions__hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .page-terms-conditions__button {
    width: 80%;
    margin: 0 auto;
  }

  .page-terms-conditions__section-title {
    font-size: 1.5em;
  }

  .page-terms-conditions__image-full-width {
    max-width: 100%;
    height: auto; /* Ensure images are responsive and do not overflow */
  }

  .page-terms-conditions__paragraph, .page-terms-conditions__sidebar-list a {
    font-size: 0.95em;
  }
}

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

  .page-terms-conditions__hero-description {
    font-size: 0.9em;
  }

  .page-terms-conditions__button {
    width: 90%;
  }
}