/* General styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main, #333333); /* Default text color, assuming light body background */
  background: var(--background, #F5F7FA); /* Main page background color */
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above content */
  align-items: center;
  padding-bottom: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient for hero background */
  padding-top: 10px; /* Small top padding, assuming body already handles header offset */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 10px;
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  color: #ffffff; /* White text on dark gradient background */
}

.page-promotions__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-promotions__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Current Offers Section */
.page-promotions__current-offers,
.page-promotions__how-to-claim,
.page-promotions__terms-summary,
.page-promotions__faq-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-promotions__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #333333);
}

.page-promotions__section-description {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #555555;
}

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

.page-promotions__offer-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #E0E0E0); /* Border color */
}

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

.page-promotions__card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

.page-promotions__card-description {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.3s ease;
  align-self: flex-start; /* Align button to start */
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background: #fdfdfd;
}

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

.page-promotions__step-card {
  background: var(--card-bg, #FFFFFF);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--border, #E0E0E0);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: #E53935; /* Main brand color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main, #333333);
}

.page-promotions__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__step-button {
  display: inline-block;
  padding: 12px 25px;
  background: #E53935; /* Main brand color */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__step-button:hover {
  background: #FF5A4F; /* Auxiliary brand color */
}

/* Terms Summary Section */
.page-promotions__terms-summary {
  background: #F5F7FA;
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  color: #555555;
  font-size: 16px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__read-more-button {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 25px;
  background: transparent;
  color: #E53935; /* Main brand color */
  border: 2px solid #E53935;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__read-more-button:hover {
  background: #E53935;
  color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border, #E0E0E0);
  overflow: hidden;
  background: var(--card-bg, #FFFFFF);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
details.page-promotions__faq-item summary.page-promotions__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;
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f8f8f8;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #333333);
}
.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935; /* Main brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}
.page-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}


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

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

  /* Hero Section */
  .page-promotions__hero-section {
    padding-bottom: 30px;
    padding-top: 10px !important; /* Small top padding for mobile */
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 0; /* Full width image on mobile */
  }
  .page-promotions__hero-content {
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .page-promotions__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Sections general */
  .page-promotions__current-offers,
  .page-promotions__how-to-claim,
  .page-promotions__terms-summary,
  .page-promotions__faq-section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Offers Grid */
  .page-promotions__offers-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-promotions__offer-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  .page-promotions__card-image {
    height: 180px; /* Smaller fixed height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__card-content {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-promotions__card-description {
    font-size: 14px;
    margin-bottom: 15px;
  }
  .page-promotions__card-button {
    padding: 8px 15px;
    font-size: 14px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* How to Claim Steps */
  .page-promotions__steps-container {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }
  .page-promotions__step-card {
    padding: 25px;
  }
  .page-promotions__step-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-promotions__step-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-promotions__step-button {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Terms Summary */
  .page-promotions__terms-list {
    padding-left: 20px;
    font-size: 15px;
  }
  .page-promotions__terms-list li {
    margin-bottom: 8px;
  }
  .page-promotions__read-more-button {
    padding: 10px 20px;
    font-size: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* FAQ Section */
  details.page-promotions__faq-item summary.page-promotions__faq-question {
    padding: 15px 20px;
  }
  .page-promotions__faq-qtext {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-promotions__faq-item .page-promotions__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Generic image and container responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__hero-section,
  .page-promotions__current-offers,
  .page-promotions__how-to-claim,
  .page-promotions__terms-summary,
  .page-promotions__faq-section,
  .page-promotions__offers-grid,
  .page-promotions__steps-container,
  .page-promotions__faq-list,
  .page-promotions__hero-image-wrapper,
  .page-promotions__offer-card,
  .page-promotions__step-card,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Add specific padding if needed for these containers, e.g., on sections */
  .page-promotions__hero-content,
  .page-promotions__current-offers,
  .page-promotions__how-to-claim,
  .page-promotions__terms-summary,
  .page-promotions__faq-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button specific responsive rules for containers */
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Common responsive styles for elements that might not have a specific module */
/* These are general overrides for any image or button within .page-promotions */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions a[class*="button"],
.page-promotions a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}