/* Base styles for the Terms & Conditions page */
.page-terms-conditions {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #F5F7FA; /* Consistent with body background */
}

.page-terms-conditions__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-align: center;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-terms-conditions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width on larger screens */
  margin-bottom: 20px;
}

.page-terms-conditions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-terms-conditions__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
}

.page-terms-conditions__main-title {
  font-size: clamp(2em, 4vw, 2.8em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-terms-conditions__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-terms-conditions__section {
  padding: 40px 20px;
  background-color: #ffffff; /* Card BG color */
  margin: 20px auto;
  max-width: 1200px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-terms-conditions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #E53935; /* Main brand color for titles */
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FF5A4F;
}

.page-terms-conditions h3 {
  font-size: 1.8em;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-terms-conditions p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #333333;
}

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

.page-terms-conditions__list-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-terms-conditions__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 25px auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-terms-conditions__cta-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-terms-conditions__btn-primary,
.page-terms-conditions__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-terms-conditions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-terms-conditions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-terms-conditions__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-terms-conditions__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
}

.page-terms-conditions__text-link {
  color: #E53935;
  text-decoration: underline;
}

.page-terms-conditions__text-link:hover {
  color: #FF5A4F;
}

/* Ensure all required selectors for homepage modules are present, even if not directly used */
/* This is a non-homepage page, so these selectors will have minimal styling or be for general elements */
.page-terms-conditions__home-content {
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 20px;
  background-color: #ffffff;
  margin: 20px auto;
  max-width: 1200px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: auto; /* Adjusted for content, not fixed height */
  overflow-y: visible;
}

.page-terms-conditions__row-games, .page-terms-conditions__row-sport, .page-terms-conditions__row-coop {
  background-color: #F5F7FA;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}

.page-terms-conditions__games-title, .page-terms-conditions__sport-title, .page-terms-conditions__coop-title {
  color: #333333;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

.page-terms-conditions__slider-wrapper {
  overflow: hidden;
  margin-bottom: 30px;
}

.page-terms-conditions__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

.page-terms-conditions__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  padding: 15px;
}

.page-terms-conditions__game-slide img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 10px;
}

.page-terms-conditions__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 30px auto;
}

.page-terms-conditions__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-terms-conditions__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 30px;
}

.page-terms-conditions__blog-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-terms-conditions__blog-card img {
  width: 100%;
  
  object-fit: cover;
}

.page-terms-conditions__blog-card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-terms-conditions__blog-card-title {
  font-size: 1.2em;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-terms-conditions__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-terms-conditions__blog-card-link:hover .page-terms-conditions__blog-card-title {
  color: #FF5A4F;
}

.page-terms-conditions__blog-card-text {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
  flex-grow: 1;
}

.page-terms-conditions__btn-outline {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #E53935;
  color: #E53935;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: auto; /* Pushes button to bottom */
  align-self: flex-start;
  transition: all 0.3s ease;
}

.page-terms-conditions__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-terms-conditions__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

.page-terms-conditions__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-terms-conditions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-terms-conditions__hero-section {
    padding-top: 10px; /* Still small top padding */
    padding-bottom: 20px;
  }

  .page-terms-conditions__main-title {
    font-size: 1.8em; /* Adjusted for mobile */
  }

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

  .page-terms-conditions__section {
    padding: 20px 15px;
    margin: 15px auto;
  }

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

  .page-terms-conditions p,
  .page-terms-conditions li {
    font-size: 0.95em;
  }

  .page-terms-conditions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-terms-conditions__section,
  .page-terms-conditions__card,
  .page-terms-conditions__container,
  .page-terms-conditions__home-content,
  .page-terms-conditions__row-games,
  .page-terms-conditions__row-sport,
  .page-terms-conditions__row-coop {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-terms-conditions__cta-wrapper {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-terms-conditions__btn-primary,
  .page-terms-conditions__btn-secondary,
  .page-terms-conditions a[class*="button"],
  .page-terms-conditions a[class*="btn"] {
    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;
  }

  /* Homepage module specific mobile rules */
  .page-terms-conditions__home-content {
    height: auto; /* Ensure it's not fixed height on mobile */
    overflow-y: visible;
  }

  .page-terms-conditions__slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    overflow-x: auto; /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .page-terms-conditions__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
    scroll-snap-align: start;
  }

  .page-terms-conditions__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on mobile */
    gap: 8px;
  }

  .page-terms-conditions__banner-item img {
    
    
  }

  .page-terms-conditions__blog-masonry {
    grid-template-columns: 1fr; /* Single column for blog cards */
  }

  .page-terms-conditions__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-terms-conditions__blog-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Keep horizontal scroll */
    overflow-x: auto; /* Enable horizontal scroll */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
}