/* style/register.css */

/* --- General Page Styling --- */
.page-register {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  background-color: #f9f9f9; /* Light background for the page content */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
}

.page-register__section-title {
  font-size: 36px;
  color: #0A2463; /* Main brand color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Color Contrast Classes --- */
.page-register__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description,
.page-register__dark-bg .page-register__feature-title,
.page-register__dark-bg .page-register__feature-text,
.page-register__dark-bg .page-register__promo-title,
.page-register__dark-bg .page-register__promo-text,
.page-register__dark-bg .page-register__info-title,
.page-register__dark-bg .page-register__info-text,
.page-register__dark-bg .page-register__faq-question h3,
.page-register__dark-bg .page-register__faq-toggle,
.page-register__dark-bg .page-register__faq-answer p {
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #0A2463, #E0A441); /* Gradient background for visual appeal */
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-register__hero-title {
  font-size: 48px;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #E0A441; /* Auxiliary brand color for CTA */
  color: #0A2463;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.page-register__cta-button:hover {
  background: #ffffff;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: #E0A441;
}

/* --- Feature Grid (Module 1) --- */
.page-register__intro-section {
  padding-bottom: 80px;
}

.page-register__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 40px;
}

.page-register__feature-item {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__feature-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 24px;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 16px;
  color: #555555;
}

/* --- Quick Access (Module 2) --- */
.page-register__quick-access-section {
  padding: 80px 0;
}

.page-register__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: #E0A441; /* Auxiliary color for primary action */
  color: #0A2463;
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  background: #ffffff;
  color: #0A2463;
  border-color: #E0A441;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-register__btn-secondary:hover {
  background: #E0A441;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* --- Games Intro (Module 3) --- */
.page-register__games-intro-section {
  padding-bottom: 80px;
}

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

.page-register__game-card {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-register__game-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__game-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__game-title a:hover {
  color: #E0A441;
}

.page-register__game-text {
  font-size: 15px;
  color: #555555;
}

/* --- Promotions (Module 4) --- */
.page-register__promotions-section {
  padding: 80px 0;
}

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

.page-register__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__promo-title {
  font-size: 24px;
  color: #E0A441; /* Auxiliary color for promo titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__promo-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* --- Security & Service (Module 5) --- */
.page-register__security-service-section {
  padding-bottom: 80px;
}

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

.page-register__info-item {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__info-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-register__info-title {
  font-size: 24px;
  color: #0A2463;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__info-text {
  font-size: 16px;
  color: #555555;
}

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #ffffff; /* Ensure white background for FAQ items */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #333333; /* Ensure dark text on white background */
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficient value */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #0A2463; /* Main brand color for questions */
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #E0A441; /* Auxiliary color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #0A2463; /* Change color when active */
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* --- Guides Section (Module 7) --- */
.page-register__guides-section {
  padding-bottom: 80px;
}

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

.page-register__guide-card {
  background: #fdfdfd;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__guide-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-register__guide-title {
  font-size: 22px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__guide-title a {
  color: #0A2463;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__guide-title a:hover {
  color: #E0A441;
}

.page-register__guide-text {
  font-size: 15px;
  color: #555555;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 40px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top for fixed header */
  }

  .page-register__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__section {
    padding: 40px 0;
  }

  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }
  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__feature-grid,
  .page-register__game-cards,
  .page-register__promo-grid,
  .page-register__info-grid,
  .page-register__guide-cards {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-register__feature-item,
  .page-register__game-card,
  .page-register__promo-card,
  .page-register__info-item,
  .page-register__guide-card {
    padding: 20px;
  }

  .page-register__feature-title,
  .page-register__game-title,
  .page-register__promo-title,
  .page-register__info-title,
  .page-register__guide-title {
    font-size: 20px;
  }

  .page-register__game-card img,
  .page-register__promo-card img,
  .page-register__info-item img,
  .page-register__guide-card img {
     /* Adjust height for mobile */
  }

  .page-register__quick-access-section {
    padding: 40px 0;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
  }

  .page-register__btn-primary,
  .page-register__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;
  }

  .page-register__faq-section {
    padding: 40px 0;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
    color: #0A2463; /* Ensure dark text on white background */
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
    color: #E0A441; /* Ensure auxiliary color */
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__button-group,
  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure no CSS filter on images */
.page-register img {
  filter: none !important;
}

/* Contrast fix for text on specific backgrounds if needed */
.page-register__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-register__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}