/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-bg: #08160F;
  --page-promotions-card-bg: #11271B;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border: #2E7A4E;
  --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-button-text: #ffffff;
  --page-promotions-gold: #F2C14E;
  --page-promotions-deep-green: #0A4B2C;
  --page-promotions-glow: #57E38D;
  --page-promotions-divider: #1E3A2A;
}

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body already handles padding-top: var(--header-offset) */
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: var(--page-promotions-deep-green);
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.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;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Using clamp for responsive font size */
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: var(--page-promotions-text-main);
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-button-text);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* General Section Styling */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-section,
.page-promotions__benefits-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--page-promotions-divider);
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: var(--page-promotions-gold);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__text-block {
  font-size: 1.05em;
  color: var(--page-promotions-text-main);
  margin-bottom: 20px;
  line-height: 1.8;
}

.page-promotions__text-block--center {
  text-align: center;
}

.page-promotions__text-block a {
  color: var(--page-promotions-glow);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__text-block a:hover {
  color: var(--page-promotions-gold);
}

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

.page-promotions__promotion-card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--page-promotions-border);
  display: flex;
  flex-direction: column;
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-button-text);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* How-To-Claim Steps */
.page-promotions__claim-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  counter-increment: step-counter;
}

.page-promotions__step-item::before {
  content: "0" counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--page-promotions-gold);
  color: var(--page-promotions-deep-green);
  font-size: 1.8em;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.page-promotions__step-title {
  font-size: 1.6em;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  padding-left: 60px; /* Space for the step number */
}

.page-promotions__step-description {
  font-size: 1.05em;
  color: var(--page-promotions-text-main);
  line-height: 1.7;
  padding-left: 60px;
}

.page-promotions__cta-block {
  text-align: center;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px dashed var(--page-promotions-divider);
}

.page-promotions__cta-text {
  font-size: 1.3em;
  color: var(--page-promotions-text-main);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-promotions__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 10px;
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__terms-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__terms-subtitle {
  font-size: 1.4em;
  color: var(--page-promotions-glow);
  margin-bottom: 10px;
}

.page-promotions__terms-description {
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
}

/* Benefits Section */
.page-promotions__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__benefit-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-promotions__benefit-item:hover {
  transform: translateY(-5px);
}

.page-promotions__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--page-promotions-glow)); /* Only for glow, not color change */
}

.page-promotions__benefit-title {
  font-size: 1.4em;
  color: var(--page-promotions-gold);
  margin-bottom: 10px;
}

.page-promotions__benefit-description {
  font-size: 0.95em;
  color: var(--page-promotions-text-secondary);
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-promotions-text-main);
  background-color: var(--page-promotions-deep-green);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary:hover {
  background-color: var(--page-promotions-border);
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--page-promotions-gold);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-promotions-glow);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--page-promotions-divider);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-promotions__cta-button--final {
  margin-top: 40px;
  padding: 18px 40px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__promotions-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding: 0 15px;
  }
  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__hero-description {
    font-size: 1em;
  }
  .page-promotions__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 10px !important;
    font-size: 1em !important;
  }
  .page-promotions__intro-section,
  .page-promotions__types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__benefits-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }
  .page-promotions__promotions-grid,
  .page-promotions__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__step-item,
  .page-promotions__terms-item,
  .page-promotions__benefit-item,
  .page-promotions__faq-item {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__step-item::before {
    left: 10px;
  }
  .page-promotions__step-title,
  .page-promotions__step-description {
    padding-left: 50px;
  }
  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__cta-block,
  .page-promotions__promotions-grid,
  .page-promotions__benefits-grid,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-promotions__hero-section {
    padding-top: 10px !important;
  }
  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }
  .page-promotions__cta-button--large {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }
}