:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #000080; /* Dark Blue */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --card-bg-dark: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark */
  --card-border-dark: rgba(255, 255, 255, 0.2);
}

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency, though body is set in shared.css */
  padding-top: 120px; /* Default padding for fixed header on desktop */
  box-sizing: border-box;
}

/* 🚨 Desktop video section styles (strictly enforced) */
.page-register__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  /* 🚨 Must add desktop padding-top to ensure content is not covered by fixed navbar */
  padding-top: 10px; /* Desktop: Adjust according to actual navbar height */
  box-sizing: border-box; /* Ensure padding is included in element's total width and height */
}

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

/* 🚨 Video click link styles (strictly enforced) */
.page-register__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to prevent layout shifts (CLS) */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: #000; /* Fallback for video not loading */
  box-sizing: border-box;
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click events */
  box-sizing: border-box;
}

/* 🚨 Video click hint overlay styles (optional, enhances user experience) */
.page-register__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
}

.page-register__video-link:hover .page-register__video-overlay {
  opacity: 1;
}

.page-register__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8); /* Primary color with transparency */
  border-radius: 5px;
  white-space: nowrap;
  box-sizing: border-box;
}

/* 🚨 Play Now button styles (strictly enforced, centered below video) */
.page-register__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-register__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--secondary-color); /* Dark blue text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-register__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Module 1: H1 Title + CTA Buttons */
.page-register__title-section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--bg-dark);
  box-sizing: border-box;
}

.page-register__title-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-register__main-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-register__title-description {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  box-sizing: border-box;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 2px solid transparent;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color); /* Dark blue text on gold button */
}

.page-register__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-register__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Gold text on dark blue button */
  border-color: var(--primary-color);
}

.page-register__btn-secondary:hover {
  background-color: #000066;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Module 3: Brand Introduction */
.page-register__brand-section {
  padding: 80px 20px;
  background-color: var(--bg-dark); /* Dark background */
  color: var(--text-light); /* Light text */
  box-sizing: border-box;
}

.page-register__brand-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-register__brand-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 60px;
  font-weight: 700;
}

.page-register__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
  box-sizing: border-box;
}

.page-register__brand-item {
  background: var(--card-bg-dark); /* Slightly transparent white on dark */
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

.page-register__brand-item-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__brand-item p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 15px;
}

.page-register__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  display: block; /* Ensure image takes up its own line */
  margin-left: auto;
  margin-right: auto;
}

/* Module 2: FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: var(--text-light);
  box-sizing: border-box;
}

.page-register__faq-container {
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-register__faq-main-title {
  font-size: 38px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-register__faq-list {
  box-sizing: border-box;
}

/* FAQ container styles */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  background-color: var(--card-bg-dark);
  box-sizing: border-box;
}

/* FAQ default state - answer hidden */
.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 30px; /* Adjusted padding for dark theme */
  opacity: 0;
  color: var(--text-light);
  box-sizing: border-box;
}

/* FAQ expanded state - 🚨 Use !important and a sufficiently large max-height to ensure expansion */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 30px !important; /* Adjusted padding for dark theme */
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly darker transparent white */
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
}

/* Question styles */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  box-sizing: border-box;
}

.page-register__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter transparent white */
  border-color: rgba(255, 215, 0, 0.5); /* Primary color hint */
}

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

/* Question title styles */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color); /* Gold color for questions */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* Toggle icon */
.page-register__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Gold color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger icon size */
  height: 32px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: var(--text-light); /* White color when active */
  transform: rotate(45deg); /* Rotate for minus sign */
}

.page-register__app-download-cta {
  margin-top: 20px;
  justify-content: flex-start; /* Align buttons to start */
}

/* Module 4: Blog List */
.page-register__blog-section {
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-register__blog-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  box-sizing: border-box;
}

.page-register__blog-title {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 60px;
  font-weight: 700;
}

.page-register__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  box-sizing: border-box;
}

.page-register__blog-item {
  background: var(--card-bg-dark);
  border: 1px solid var(--card-border-dark);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

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

.page-register__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px; /* Add padding to link content */
  box-sizing: border-box;
}