/* style/register.css */

/* --- General Page Styling --- */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-register__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-tertiary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  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;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-register__btn-primary {
  background-color: #FFD700; /* Auxiliary color for primary action */
  color: #1A237E; /* Primary color for text on auxiliary background */
  border: 2px solid #FFD700;
}

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

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

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
}

.page-register__btn-tertiary {
  background-color: #1A237E;
  color: #FFD700;
  border: 2px solid #1A237E;
}

.page-register__btn-tertiary:hover {
  background-color: #0e144a;
  border-color: #0e144a;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #1A237E, #0e144a);
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-register__hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1A237E;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 200px; /* Constrain height */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__benefit-text {
  color: #f0f0f0;
  font-size: 1em;
}

/* --- Guide Section --- */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #0e144a; /* Slightly darker primary color */
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 40px;
}

.page-register__guide-item {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.page-register__guide-number {
  font-size: 3em;
  font-weight: bold;
  color: #FFD700;
  background-color: #1A237E;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-register__guide-content {
  flex: 1;
}

.page-register__guide-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__guide-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 15px;
}

/* --- Promotion Section --- */
.page-register__promo-section {
  padding: 80px 0;
  background-color: #1A237E;
}

.page-register__promo-content {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-top: 40px;
}

.page-register__promo-text-block {
  flex: 1;
}

.page-register__promo-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-register__promo-list {
  list-style-type: disc;
  padding-left: 25px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__promo-list li p {
  margin-bottom: 8px;
  font-size: 1em;
}

.page-register__promo-list ol {
  list-style-type: decimal;
}

.page-register__promo-note {
  font-style: italic;
  color: #cccccc;
  margin-top: 20px;
}

.page-register__promo-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* --- Games Section (Dark Background) --- */
.page-register__games-section {
  padding: 80px 0;
}

.page-register__dark-section {
  background-color: #0e144a; /* Darker background for contrast */
  color: #ffffff;
}

.page-register__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Lighter transparent for contrast */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards are same height */
  display: flex;
  flex-direction: column;
}

.page-register__game-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.12);
}

.page-register__game-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-register__game-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
  flex-grow: 1; /* Allow title to take up available space */
}

.page-register__game-text {
  color: #f0f0f0;
  font-size: 0.95em;
  margin-bottom: 15px;
}

.page-register__game-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
  margin-top: auto; /* Push link to bottom */
}

.page-register__game-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

/* --- Security Section --- */
.page-register__security-section {
  padding: 80px 0;
  background-color: #1A237E;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-register__security-text-block {
  flex: 1;
}

.page-register__security-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-register__security-text {
  color: #f0f0f0;
  margin-bottom: 15px;
}

/* --- FAQ Section --- */
.page-register__faq-section {
  padding: 80px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-title {
  font-size: 1.2em;
  color: #FFD700;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFD700;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large for content */
  padding: 15px 25px 20px 25px;
}

.page-register__faq-answer p {
  margin: 0;
}

/* --- Final CTA Section --- */
.page-register__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0e144a, #1A237E);
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2.2em;
  }
  .page-register__hero-container,
  .page-register__promo-content,
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }
}