.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #FFFFFF);
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__hero-section {
  position: relative;
  padding: 120px 20px 60px; /* Base padding, will be adjusted by header-offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding-top: var(--header-offset, 120px);
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  margin: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
  background-color: #d16e06;
  border-color: #d16e06;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-register__introduction-section,
.page-register__poker-face-section,
.page-register__support-section,
.page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-register__games-offers-section {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-register__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__content-grid:nth-child(even) .page-register__image-wrapper {
  order: 2;
}

.page-register__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-register__image-wrapper {
  text-align: center;
}

.page-register__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
  width: 100%; /* Ensure it fills its grid cell */
}

.page-register__step-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid #EA7C07;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  color: #ffffff;
}

.page-register__step-item p {
  color: #ffffff;
}

.page-register__step-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  color: #ffffff;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
  color: #26A9E0; /* Brand primary color for questions */
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-register__faq-item[open] summary {
  border-bottom: 1px solid #d0d0d0;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle */
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 20px;
  font-size: 1.05em;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__content-grid {
    grid-template-columns: 1fr;
  }
  .page-register__content-grid:nth-child(even) .page-register__image-wrapper {
    order: unset;
  }
  .page-register__image-wrapper {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: var(--header-offset, 120px) 15px 40px; /* Adjust padding for mobile */
    min-height: 400px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    display: block;
    width: calc(100% - 30px) !important;
    margin: 10px 15px !important;
    padding: 12px 20px;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__introduction-section,
  .page-register__poker-face-section,
  .page-register__support-section,
  .page-register__faq-section,
  .page-register__games-offers-section {
    padding: 40px 0;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__image-wrapper,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__text-block p,
  .page-register__faq-answer p {
    font-size: 1em;
  }
  .page-register__step-item {
    padding: 15px;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__faq-item summary {
    padding: 15px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 15px;
  }
}

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