/* style/terms-conditions.css */
.page-terms-conditions {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background-color: #FFFFFF;
  color: #333333; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-terms-conditions__hero-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 80px 20px;
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF;
  min-height: 400px; /* Ensure hero section has some height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-terms-conditions__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.page-terms-conditions__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FCBC45; /* Highlight with login button color */
  position: relative;
  z-index: 2;
}

.page-terms-conditions__intro-text {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 2;
}

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

.page-terms-conditions__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.page-terms-conditions__article {
  flex: 3;
  min-width: 300px;
}

.page-terms-conditions__article-heading {
  font-size: 2em;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
  border-bottom: 2px solid #FCBC45;
  padding-bottom: 5px;
}

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

.page-terms-conditions__responsible-gaming-callout {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__callout-image {
  width: 200px; /* Min width 200px */
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.page-terms-conditions__callout-text {
  flex: 1;
  font-size: 1.1em;
  color: #333333;
}

.page-terms-conditions__callout-text a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

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

.page-terms-conditions__cta-section {
  flex: 1;
  min-width: 280px;
  background-color: #000000;
  color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  align-self: flex-start; /* Stick to top */
}

.page-terms-conditions__cta-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-terms-conditions__cta-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-terms-conditions__cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

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

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

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

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

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

.page-terms-conditions__cta-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 20px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-terms-conditions__hero-section {
    padding: 60px 15px;
    min-height: 300px;
  }

  .page-terms-conditions__main-title {
    font-size: 2.5em;
  }

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

  .page-terms-conditions__content-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-terms-conditions__article-heading {
    font-size: 1.5em;
  }

  .page-terms-conditions__responsible-gaming-callout {
    flex-direction: column;
    text-align: center;
  }

  .page-terms-conditions__callout-image {
    width: 100%;
    max-width: 300px;
  }

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

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

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

  /* Mobile content area image constraint */
  .page-terms-conditions__content-area img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-terms-conditions__hero-section {
    padding: 40px 10px;
    min-height: 250px;
  }

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

  .page-terms-conditions__article-heading {
    font-size: 1.3em;
  }

  .page-terms-conditions__button {
    font-size: 1em;
    padding: 10px 20px;
  }
}

/* Ensure all images within .page-terms-conditions are not smaller than 200px */
.page-terms-conditions img:not(.page-terms-conditions__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for hero image if needed, but it's already large */
.page-terms-conditions__hero-image {
  min-width: unset;
  min-height: unset;
}