.page-terms-conditions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main color, suitable for dark body background #B71C1C */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-terms-conditions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-terms-conditions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: #FFD86A; /* Gold-like color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-terms-conditions__intro-text {
  font-size: 1.1em;
  color: #FFF5E1;
  margin-bottom: 30px;
}

.page-terms-conditions__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #333333; /* Dark text for light gradient background to ensure WCAG AA contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-terms-conditions__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

.page-terms-conditions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: #D32F2F; /* Card B G color */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-top: -40px; /* Overlap with hero section for visual flow */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__section {
  margin-bottom: 40px;
  padding: 20px;
  background-color: #7A0E0E; /* Deep Red for section backgrounds */
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #F2B544; /* Border color */
}

.page-terms-conditions__section-title {
  font-size: 2.2em;
  color: #FFD86A; /* Gold color for section titles */
  margin-bottom: 20px;
  border-bottom: 2px solid #F2B544; /* Border color */
  padding-bottom: 10px;
}

.page-terms-conditions__sub-title {
  font-size: 1.6em;
  color: #FFF5E1; /* Text Main color for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-terms-conditions ul {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 15px;
  color: #FFF5E1;
}

.page-terms-conditions ul li {
  margin-bottom: 8px;
  color: #FFF5E1;
}

.page-terms-conditions a {
  color: #F4D34D; /* Gold color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-terms-conditions a:hover {
  color: #FFCC66; /* Glow color on hover */
  text-decoration: underline;
}

.page-terms-conditions__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544; /* Border color */
}

.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #FFF5E1; /* Text Main color as background */
  color: #C91F17; /* Primary brand color as text */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
  border: 2px solid #C91F17;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  margin-top: 20px;
}

.page-terms-conditions__btn-secondary:hover {
  background: #C91F17;
  color: #FFF5E1;
  transform: translateY(-2px);
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 10px 15px 40px;
  }

  .page-terms-conditions__hero-content {
    padding: 20px 15px;
  }

  .page-terms-conditions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-terms-conditions__intro-text {
    font-size: 1em;
  }

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

  .page-terms-conditions__section {
    padding: 15px;
    margin-bottom: 30px;
  }

  .page-terms-conditions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-terms-conditions__sub-title {
    font-size: 1.4em;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* Mobile image adaptation */
  .page-terms-conditions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile button adaptation */
  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add margin for stacked buttons */
  }

  /* Ensure containers with images/buttons are responsive */
  .page-terms-conditions__section,
  .page-terms-conditions__content-area,
  .page-terms-conditions__hero-section,
  .page-terms-conditions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px !important;
  }

  .page-terms-conditions__btn-container {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* No CSS filter for images */
.page-terms-conditions img {
  filter: none; /* Ensure no filter is applied to images */
}

.page-terms-conditions__hero-image {
  filter: brightness(0.6); /* This is allowed for background images to improve text readability, not changing image color */
}