:root {
  --color-primary: #C91F17; /* Main */
  --color-secondary: #E53935; /* Auxiliary */
  --color-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --color-card-bg: #D32F2F;
  --color-background-main: #B71C1C;
  --color-text-main: #FFF5E1;
  --color-border: #F2B444;
  --color-glow: #FFCC66;
  --color-gold: #F4D34D;
  --color-deep-red: #7A0E0E;
}

.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for assumed light body background */
  background-color: var(--color-background); /* From shared.css */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-register__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
}

/* 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;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-background-main); /* Deep red background for hero */
  color: var(--color-text-main); /* Light text on deep red background */
}

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

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--color-gold);
}

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

.page-register__main-title {
  color: var(--color-gold); /* Gold title for impact */
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 15px var(--color-glow); /* Glow effect */
  letter-spacing: -0.02em;
}

.page-register__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 35px;
  font-weight: 300;
  opacity: 0.9;
}

.page-register__cta-button {
  background: var(--color-button-gradient); /* Custom button gradient */
  color: #ffffff;
  padding: 18px 45px;
  border-radius: 35px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.05em;
}

.page-register__cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  filter: brightness(1.1);
}

/* Intro Section */
.page-register__intro-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__intro-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

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

.page-register__feature-item {
  background-color: var(--color-card-bg); /* Use custom card background */
  color: var(--color-text-main); /* Light text on dark card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border); /* Custom border color */
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-register__feature-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid var(--color-gold);
  object-fit: cover;
}

.page-register__feature-item h3 {
  color: var(--color-gold); /* Gold for headings on dark cards */
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-register__feature-item p {
  font-size: 1em;
  line-height: 1.7;
  text-align: center;
  opacity: 0.9;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__steps-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

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

.page-register__step-item {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 25px;
  border: 3px solid var(--color-gold);
  box-shadow: 0 0 0 5px rgba(244, 211, 77, 0.3);
}

.page-register__step-item h3 {
  font-size: 1.8em;
  color: var(--color-primary);
  margin-bottom: 15px;
}

.page-register__step-item p {
  font-size: 1em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 20px;
  color: #555555;
}

.page-register__btn-secondary {
  background: var(--color-secondary);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
  background: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Game Highlight Section */
.page-register__game-highlight-section {
  padding: 80px 0;
  background-color: var(--color-background-main);
  color: var(--color-text-main);
}

.page-register__game-highlight-section .page-register__section-title {
  color: var(--color-gold);
}

.page-register__game-highlight-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
  opacity: 0.9;
}

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

.page-register__game-card {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-register__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--color-gold);
}

.page-register__game-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-register__game-card h3 a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__game-card h3 a:hover {
  color: var(--color-glow);
}

.page-register__game-card p {
  font-size: 0.95em;
  line-height: 1.6;
  text-align: center;
  opacity: 0.85;
  margin-bottom: 0;
}

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

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__promotions-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

.page-register__promo-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 60px;
}

.page-register__promo-list li {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.1em;
  line-height: 1.7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-register__promo-list li:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__promo-list li a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
}

.page-register__promo-list li a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* Security & Support Section */
.page-register__security-support-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__security-support-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

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

.page-register__info-card {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-register__info-card h3 {
  color: var(--color-gold);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-register__info-card p {
  font-size: 1em;
  line-height: 1.7;
  text-align: center;
  margin-bottom: 20px;
  opacity: 0.9;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__faq-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--color-border); /* Custom border for FAQ */
  overflow: hidden;
  background: var(--color-card-bg); /* Dark background for FAQ item */
  color: var(--color-text-main); /* Light text */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-gold); /* Gold for FAQ question on dark background */
}

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

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: var(--color-deep-red); /* Slightly darker red on hover */
}

.page-register__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-register__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  color: var(--color-gold); /* Gold toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 25px;
  background: var(--color-deep-red); /* Deep red for answer background */
  color: var(--color-text-main); /* Light text */
  border-radius: 0 0 10px 10px;
  font-size: 1em;
  line-height: 1.7;
}

/* Latest Blog Section */
.page-register__latest-blog-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__latest-blog-section p {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  font-size: 1.1em;
}

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

.page-register__blog-card {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-register__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--color-gold);
}

.page-register__blog-card h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-register__blog-card h3 a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__blog-card h3 a:hover {
  color: var(--color-glow);
}

.page-register__blog-card p {
  font-size: 0.95em;
  line-height: 1.6;
  text-align: center;
  opacity: 0.85;
  margin-bottom: 15px;
}

.page-register__blog-card time {
  font-size: 0.85em;
  color: var(--color-text-main);
  opacity: 0.7;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-description, .page-register__intro-section p, .page-register__steps-section p, .page-register__game-highlight-section p, .page-register__promotions-section p, .page-register__security-support-section p, .page-register__faq-section p, .page-register__latest-blog-section p {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__hero-section, .page-register__intro-section, .page-register__steps-section, .page-register__game-highlight-section, .page-register__promotions-section, .page-register__security-support-section, .page-register__faq-section, .page-register__latest-blog-section {
    padding: 40px 0;
  }
  .page-register__hero-section {
    padding-top: 10px !important;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__hero-image img {
    border-radius: 8px;
  }
  .page-register__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }
  .page-register__hero-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }
  .page-register__cta-button {
    padding: 15px 30px;
    font-size: 1em;
    border-radius: 30px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__features-grid, .page-register__step-list, .page-register__game-grid, .page-register__info-grid, .page-register__blog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-register__feature-item, .page-register__step-item, .page-register__game-card, .page-register__info-card, .page-register__blog-card {
    padding: 20px;
  }
  .page-register__feature-item h3, .page-register__step-item h3, .page-register__game-card h3, .page-register__info-card h3, .page-register__blog-card h3 {
    font-size: 1.4em;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-register__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__promo-list, .page-register__faq-list {
    margin: 30px auto 0;
  }
  .page-register__promo-list li {
    padding: 15px 20px;
    font-size: 1em;
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-register__faq-toggle {
    font-size: 1.8em;
    width: 25px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
  }
  .page-register__game-card img, .page-register__blog-card img {
    
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }
  .page-register__cta-buttons .page-register__cta-button {
    width: 100%;
  }
  .page-register__section, .page-register__card, .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}