/* style/promotions-new-user.css */

/* --- Base Styles & Variables --- */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --background-light: #ffffff;
  --background-dark: #26A9E0; /* Using primary color for dark sections */
  --button-login-color: #EA7C07;
}

.page-promotions-new-user {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--dark-text-color); /* Default text color for light body background */
  background-color: var(--background-light);
}

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

/* --- Hero Section --- */
.page-promotions-new-user__hero-section {
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  background-color: var(--background-light);
}

.page-promotions-new-user__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions-new-user__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions-new-user__hero-content {
  max-width: 800px;
  margin-top: 40px;
  padding: 0 20px;
}

.page-promotions-new-user__main-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-promotions-new-user__description {
  font-size: 1.1em;
  color: var(--dark-text-color);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-promotions-new-user__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions-new-user__cta-buttons--center {
  margin-top: 40px;
}

.page-promotions-new-user__btn-primary,
.page-promotions-new-user__btn-secondary,
.page-promotions-new-user__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  max-width: 100%; /* Ensure buttons don't exceed container width */
  text-align: center;
}

.page-promotions-new-user__btn-primary {
  background-color: var(--button-login-color); /* Using login color for primary CTA */
  color: var(--light-text-color);
  border: 2px solid var(--button-login-color);
}

.page-promotions-new-user__btn-primary:hover {
  background-color: #D46F06; /* Darker shade of #EA7C07 */
  border-color: #D46F06; /* Darker shade of #EA7C07 */
}

.page-promotions-new-user__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions-new-user__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

.page-promotions-new-user__btn-link {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 15px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-promotions-new-user__btn-link:hover {
  background-color: var(--primary-color);
  color: var(--light-text-color);
}

/* --- General Section Styling --- */
.page-promotions-new-user__section {
  padding: 80px 0;
}

.page-promotions-new-user__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-promotions-new-user__section-title--white {
  color: var(--light-text-color);
}

.page-promotions-new-user__description--white {
  color: var(--light-text-color);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Card Styling --- */
.page-promotions-new-user__card {
  background-color: var(--secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  color: var(--dark-text-color); /* Default text color for light card background */
}

.page-promotions-new-user__card--dark {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  color: var(--light-text-color);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions-new-user__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

/* --- Features Section --- */
.page-promotions-new-user__features {
  background-color: var(--background-light);
}

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

.page-promotions-new-user__feature-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 100%; /* Ensure image fills card width */
  height: auto;
  object-fit: cover;
  margin: 0 auto 20px;
  border-radius: 8px;
  display: block; /* Ensure no extra space below image */
}

.page-promotions-new-user__feature-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions-new-user__feature-text {
  font-size: 1em;
  color: var(--dark-text-color);
}

.page-promotions-new-user__card--dark .page-promotions-new-user__feature-text {
  color: var(--light-text-color);
}

/* --- How to Register Section --- */
.page-promotions-new-user__how-to-register {
  background-color: var(--background-dark); /* Using primary color as dark background */
  color: var(--light-text-color);
  text-align: center;
}

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

.page-promotions-new-user__step-item {
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-promotions-new-user__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--button-login-color);
  color: var(--light-text-color);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid var(--light-text-color);
}

.page-promotions-new-user__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--light-text-color);
  margin-bottom: 10px;
}

.page-promotions-new-user__step-text {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.85);
}

/* --- Promotions List Section --- */
.page-promotions-new-user__promotions-list {
  background-color: var(--background-light);
}

.page-promotions-new-user__promotion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions-new-user__promotion-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 0; /* Remove padding from card as image will fill top */
  overflow: hidden;
}

.page-promotions-new-user__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  display: block;
}

.page-promotions-new-user__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-promotions-new-user__promotion-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-promotions-new-user__promotion-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-promotions-new-user__promotion-title a:hover {
  text-decoration: underline;
}

.page-promotions-new-user__promotion-text {
  font-size: 0.95em;
  color: var(--dark-text-color);
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* --- FAQ Section --- */
.page-promotions-new-user__faq-section {
  background-color: var(--background-light);
}

.page-promotions-new-user__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
}

.page-promotions-new-user__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions-new-user__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--dark-text-color);
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

/* Hide default details marker */
.page-promotions-new-user__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-promotions-new-user__faq-item summary::marker {
  display: none;
}

.page-promotions-new-user__faq-qtext {
  flex-grow: 1;
}

.page-promotions-new-user__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-promotions-new-user__faq-item[open] .page-promotions-new-user__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'x' or '-' */
}

.page-promotions-new-user__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--dark-text-color);
  background-color: var(--secondary-color);
}

.page-promotions-new-user__faq-answer p {
  margin-bottom: 0;
}

/* --- Final CTA Section --- */
.page-promotions-new-user__cta-final {
  background-color: var(--background-dark);
  color: var(--light-text-color);
  text-align: center;
  padding: 100px 0;
}

.page-promotions-new-user__cta-content {
  max-width: 900px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-promotions-new-user__hero-content {
    margin-top: 30px;
  }

  .page-promotions-new-user__section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .page-promotions-new-user {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions-new-user__container {
    padding: 0 15px;
  }

  /* Mobile Hero */
  .page-promotions-new-user__hero-section {
    padding: 10px 0 40px;
  }

  .page-promotions-new-user__main-title {
    font-size: 1.8em;
  }

  .page-promotions-new-user__description {
    font-size: 1em;
  }

  /* Mobile Buttons */
  .page-promotions-new-user__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container for buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-promotions-new-user__btn-primary,
  .page-promotions-new-user__btn-secondary,
  .page-promotions-new-user__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Mobile Images */
  .page-promotions-new-user img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile Sections and Cards */
  .page-promotions-new-user__section,
  .page-promotions-new-user__card,
  .page-promotions-new-user__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-new-user__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-promotions-new-user__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .page-promotions-new-user__feature-grid,
  .page-promotions-new-user__steps-grid,
  .page-promotions-new-user__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-promotions-new-user__promotion-image {
    height: 180px;
  }

  .page-promotions-new-user__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-promotions-new-user__faq-answer {
    padding: 15px;
  }

  .page-promotions-new-user__cta-final {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-promotions-new-user__main-title {
    font-size: 1.6em;
  }

  .page-promotions-new-user__btn-primary,
  .page-promotions-new-user__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
}