.page-promotions-member-benefits {
  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-promotions-member-benefits__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-promotions-member-benefits__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  text-align: center;
  background-color: #017439; /* Primary brand color for hero section background */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-promotions-member-benefits__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height to prevent image from being too tall */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-promotions-member-benefits__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions-member-benefits__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-promotions-member-benefits__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-promotions-member-benefits__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-promotions-member-benefits__btn-primary,
.page-promotions-member-benefits__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions-member-benefits__btn-primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom color for Register/Login font */
  border: 2px solid #C30808;
}

.page-promotions-member-benefits__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-promotions-member-benefits__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for Register/Login font */
  border: 2px solid #FFFF00; /* Use custom font color for border */
}

.page-promotions-member-benefits__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
}

.page-promotions-member-benefits__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Brand primary color for section titles */
}

.page-promotions-member-benefits__overview-section {
  padding: 60px 0;
  background-color: #ffffff; /* White background for this section */
  color: #333333; /* Dark text for white background */
}

.page-promotions-member-benefits__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

.page-promotions-member-benefits__text-block .highlight {
  font-weight: bold;
  color: #017439;
}

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

.page-promotions-member-benefits__benefit-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

.page-promotions-member-benefits__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-promotions-member-benefits__specific-benefits-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for content sections */
  color: #ffffff; /* Light text for dark background */
}

.page-promotions-member-benefits__benefit-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-promotions-member-benefits__benefit-item:last-child {
  margin-bottom: 0;
}

.page-promotions-member-benefits__benefit-item--reverse {
  flex-direction: row-reverse;
}

.page-promotions-member-benefits__benefit-content {
  flex: 1;
}

.page-promotions-member-benefits__benefit-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-promotions-member-benefits__benefit-image {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-promotions-member-benefits__benefit-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions-member-benefits__btn-small {
  padding: 12px 25px;
  font-size: 0.95rem;
  margin-top: 20px;
}

.page-promotions-member-benefits__how-to-claim-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for this section */
  color: #333333; /* Dark text for light background */
}

.page-promotions-member-benefits__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions-member-benefits__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px;
  color: #333333;
}

.page-promotions-member-benefits__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #017439;
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 4px solid #f8f8f8;
}

.page-promotions-member-benefits__cta-center {
  text-align: center;
  margin-top: 50px;
}

.page-promotions-member-benefits__btn-large {
  padding: 18px 40px;
  font-size: 1.15rem;
}

.page-promotions-member-benefits__faq-section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Dark background for FAQ */
  color: #ffffff; /* Light text for dark background */
}

.page-promotions-member-benefits__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-promotions-member-benefits__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions-member-benefits__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  color: #ffffff;
}

.page-promotions-member-benefits__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions-member-benefits__faq-question .page-promotions-member-benefits__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #FFFF00; /* Use custom font color for toggle */
}

.page-promotions-member-benefits__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-promotions-member-benefits__faq-answer p {
  margin-top: 10px;
  color: #f0f0f0;
}

.page-promotions-member-benefits__final-cta-section {
  padding: 60px 0;
  background-color: #017439; /* Primary brand color for final CTA */
  text-align: center;
  color: #ffffff;
}

/* --- Responsive Styles --- */

/* Tablet & Mobile */
@media (max-width: 1024px) {
  .page-promotions-member-benefits__container {
    padding: 15px;
  }

  .page-promotions-member-benefits__hero-image-wrapper {
    max-height: 450px;
  }

  .page-promotions-member-benefits__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-promotions-member-benefits__description {
    font-size: 1rem;
  }

  .page-promotions-member-benefits__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions-member-benefits__btn-primary,
  .page-promotions-member-benefits__btn-secondary {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
  }

  .page-promotions-member-benefits__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-promotions-member-benefits__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions-member-benefits__benefit-item {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-promotions-member-benefits__benefit-item--reverse {
    flex-direction: column;
  }

  .page-promotions-member-benefits__benefit-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .page-promotions-member-benefits__how-to-claim-section .page-promotions-member-benefits__text-block {
    text-align: center;
  }

  .page-promotions-member-benefits__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-promotions-member-benefits__btn-large {
    max-width: 400px;
  }

  .page-promotions-member-benefits__faq-question {
    font-size: 1.05rem;
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-promotions-member-benefits__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-promotions-member-benefits__hero-image-wrapper {
    max-height: 300px;
  }

  .page-promotions-member-benefits__hero-image,
  .page-promotions-member-benefits__benefit-image,
  .page-promotions-member-benefits img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }

  .page-promotions-member-benefits__container,
  .page-promotions-member-benefits__overview-section .page-promotions-member-benefits__text-block,
  .page-promotions-member-benefits__specific-benefits-section .page-promotions-member-benefits__text-block,
  .page-promotions-member-benefits__how-to-claim-section .page-promotions-member-benefits__text-block,
  .page-promotions-member-benefits__final-cta-section .page-promotions-member-benefits__text-block,
  .page-promotions-member-benefits__benefit-content p,
  .page-promotions-member-benefits__benefit-card p,
  .page-promotions-member-benefits__step-card p,
  .page-promotions-member-benefits__faq-answer p {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  .page-promotions-member-benefits__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-promotions-member-benefits__description {
    font-size: 0.95rem;
    padding: 0 15px;
  }

  .page-promotions-member-benefits__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }

  .page-promotions-member-benefits__btn-primary,
  .page-promotions-member-benefits__btn-secondary,
  .page-promotions-member-benefits a[class*="button"],
  .page-promotions-member-benefits a[class*="btn"] {
    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-promotions-member-benefits__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-promotions-member-benefits__benefits-grid {
    gap: 20px;
  }

  .page-promotions-member-benefits__benefit-card {
    padding: 25px;
  }

  .page-promotions-member-benefits__benefit-title {
    font-size: 1.5rem;
    padding: 0 15px;
  }

  .page-promotions-member-benefits__benefit-item {
    margin-bottom: 30px;
  }

  .page-promotions-member-benefits__how-to-claim-section .page-promotions-member-benefits__section-title {
    padding: 0 15px;
  }

  .page-promotions-member-benefits__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions-member-benefits__step-card {
    padding: 50px 20px 30px;
  }

  .page-promotions-member-benefits__btn-large {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions-member-benefits__faq-list {
    padding: 0 15px;
  }

  .page-promotions-member-benefits__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-promotions-member-benefits__faq-answer {
    padding: 0 15px 15px 15px;
  }

  .page-promotions-member-benefits__final-cta-section .page-promotions-member-benefits__section-title {
    padding: 0 15px;
  }

  .page-promotions-member-benefits__final-cta-section .page-promotions-member-benefits__btn-primary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all content areas and image containers handle overflow on mobile */
@media (max-width: 768px) {
  .page-promotions-member-benefits__overview-section,
  .page-promotions-member-benefits__specific-benefits-section,
  .page-promotions-member-benefits__how-to-claim-section,
  .page-promotions-member-benefits__faq-section,
  .page-promotions-member-benefits__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .page-promotions-member-benefits__hero-content,
  .page-promotions-member-benefits__benefit-content,
  .page-promotions-member-benefits__benefit-image-wrapper,
  .page-promotions-member-benefits__benefit-card,
  .page-promotions-member-benefits__step-card,
  .page-promotions-member-benefits__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
}