/* style/terms-conditions.css */

/* Base styles for the page content */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #333333; /* Dark text for default white body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly setting for clarity, though shared.css might handle body */
}

/* Hero section for the page title */
.page-terms-conditions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #26A9E0; /* Brand primary color for hero background */
  color: #FFFFFF; /* White text for dark blue background */
  text-align: center;
}

.page-terms-conditions__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 20px; /* Space between image and text */
}

.page-terms-conditions__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-terms-conditions__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFFFF; /* White text for dark blue background */
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFFFFF; /* White text for dark blue background */
}

/* Main content area */
.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: #FFFFFF; /* White background for main content */
}

.page-terms-conditions__section {
  margin-bottom: 40px;
  background-color: #FFFFFF; /* Default light background */
  color: #333333; /* Default dark text */
  padding: 20px 0;
}

.page-terms-conditions__section-title {
  font-size: 2em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color for section titles */
}

.page-terms-conditions__subsection-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand primary color for subsection titles */
}

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

.page-terms-conditions__list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #333333;
}

.page-terms-conditions__list-item {
  margin-bottom: 8px;
  color: #333333;
}

/* Images within content */
.page-terms-conditions__content-image {
  width: 100%;
  max-width: 800px; /* Max width for content images */
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.page-terms-conditions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* For mobile responsiveness */
  word-wrap: break-word; /* For mobile responsiveness */
  text-align: center;
}

.page-terms-conditions__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-terms-conditions__btn-primary:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-terms-conditions__btn-login {
  background-color: #EA7C07; /* Custom color for login */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-terms-conditions__btn-login:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-terms-conditions__link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-terms-conditions__link:hover {
  color: #1a8cc7;
}

.page-terms-conditions__text-highlight {
  font-weight: 600;
}

.page-terms-conditions__button-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-terms-conditions__hero-title {
    font-size: 2em;
  }

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

  .page-terms-conditions__content-area {
    padding: 20px 15px;
  }

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

  .page-terms-conditions__subsection-title {
    font-size: 1.3em;
  }

  /* Mobile image responsiveness */
  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile container responsiveness */
  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__content-area {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile button responsiveness */
  .page-terms-conditions__btn {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px; /* Adjust padding for smaller screens */
  }

  /* If multiple buttons are in a flex container */
  .page-terms-conditions__button-group {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* Ensure no image filters are used */
.page-terms-conditions img {
  filter: none !important;
}