/* style/promotions.css */

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

/* Base styles for the page-promotions scope */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--promotions-text-main); /* Main text color for the page */
  background-color: var(--promotions-bg-color); /* Body background is from shared, this is for main content area */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

/* Ensure content is centered and has max-width */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--promotions-deep-green); /* Example background for hero section */
  color: var(--promotions-text-main);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the hero image */
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--promotions-gold-color); /* Use gold for main title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__subtitle {
  font-size: 1.2rem;
  color: var(--promotions-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background: var(--promotions-btn-gradient);
  color: var(--promotions-text-main); /* Light text on dark button */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--promotions-glow-color); /* Use glow color for secondary button text */
  border: 2px solid var(--promotions-glow-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--promotions-glow-color);
  color: var(--promotions-bg-color); /* Dark text on light hover background */
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--promotions-gold-color);
  text-align: center;
  margin-bottom: 25px;
  padding-top: 40px;
  line-height: 1.3;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--promotions-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Text Block Styles */
.page-promotions__text-block {
  padding: 60px 0;
}

.page-promotions__text-block p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  color: var(--promotions-text-main);
}

.page-promotions__text-block p:last-child {
  margin-bottom: 0;
}

.page-promotions__text-block ul,
.page-promotions__text-block ol {
  list-style-position: inside;
  margin-bottom: 1.5em;
  padding-left: 20px;
  color: var(--promotions-text-main);
}

.page-promotions__text-block li {
  margin-bottom: 0.8em;
  font-size: 1.05rem;
  color: var(--promotions-text-secondary);
}

/* Dark Section Style */
.page-promotions__dark-section {
  background-color: var(--promotions-deep-green);
  color: var(--promotions-text-main);
  padding: 60px 0;
}

/* Light Background Section Style */
.page-promotions__light-bg {
  background-color: var(--promotions-card-bg); /* Using card BG for light section */
  color: var(--promotions-text-main);
}

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

.page-promotions__promotion-card {
  background-color: var(--promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--promotions-border-color);
}

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

.page-promotions__card-image {
  width: 100%;
  max-width: 400px; /* Constrain card image width */
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  object-fit: cover;
  display: block; /* Ensure it behaves as a block element for max-width */
}

.page-promotions__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--promotions-gold-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

/* How-to-claim steps */
.page-promotions__claim-steps {
  counter-reset: step-counter;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__claim-steps li {
  position: relative;
  margin-bottom: 30px;
  padding-left: 60px;
  font-size: 1.05rem;
  color: var(--promotions-text-main);
}

.page-promotions__claim-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--promotions-gold-color);
  color: var(--promotions-bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__claim-steps li strong {
  color: var(--promotions-gold-color);
  font-size: 1.15rem;
}

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

.page-promotions__faq-item {
  background-color: var(--promotions-card-bg);
  border: 1px solid var(--promotions-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--promotions-text-main);
  cursor: pointer;
  background-color: var(--promotions-deep-green);
  border-bottom: 1px solid var(--promotions-border-color);
}

.page-promotions__faq-question:hover {
  background-color: var(--promotions-deep-green); /* Slightly darker on hover */
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--promotions-gold-color);
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to become cross */
}

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

/* Call to Action Section */
.page-promotions__call-to-action-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--promotions-deep-green);
  color: var(--promotions-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: 2rem;
  }
  .page-promotions__promotion-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; /* Add padding for mobile */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-bottom: 30px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-promotions__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
    max-width: 350px; /* Limit button group width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    padding-top: 30px;
    margin-bottom: 20px;
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    padding: 40px 0;
  }

  .page-promotions__text-block p,
  .page-promotions__text-block li {
    font-size: 0.95rem;
  }

  .page-promotions__promotion-grid {
    gap: 20px;
  }

  .page-promotions__card-title {
    font-size: 1.4rem;
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }

  .page-promotions__claim-steps li {
    padding-left: 50px;
    font-size: 0.95rem;
  }

  .page-promotions__claim-steps li::before {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
  }

  /* Image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-image-wrapper,
  .page-promotions__promotion-card,
  .page-promotions__text-block,
  .page-promotions__introduction-section,
  .page-promotions__types-section,
  .page-promotions__terms-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__call-to-action-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }
}