/* style/promotions.css */

/* Base styles for the page content, assuming body has a dark background from shared.css */
.page-promotions {
  background-color: var(--bg-color, #08160F); /* Fallback to custom background color if --bg-color is not set */
  color: var(--text-main-color, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  background-color: var(--bg-color, #08160F);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Spacing between image and content */
  color: var(--text-main-color, #F2FFF6);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  color: var(--gold-color, #F2C14E); /* Using gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-promotions__hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main-color, #F2FFF6);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--glow-color, #57E38D);
  border: 2px solid var(--border-color, #2E7A4E);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Semi-transparent border color */
  color: var(--text-main-color, #F2FFF6);
  border-color: var(--glow-color, #57E38D);
}

/* General Section Styles */
.page-promotions__intro-section,
.page-promotions__types-section,
.page-promotions__how-to-claim,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__cta-bottom {
  padding: 60px 0;
}

.page-promotions__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-promotions__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__promo-card.page-promotions__card {
  background-color: var(--card-bg-color, #11271B); /* Card BG color */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color, #F2FFF6); /* Ensure light text on dark card background */
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider-color, #1E3A2A);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

/* How to Claim Section */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
}

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--glow-color, #57E38D);
  line-height: 1;
}

.page-promotions__step-title {
  font-size: 1.3rem;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-promotions__step-description a {
  color: var(--glow-color, #57E38D);
  text-decoration: none;
}

.page-promotions__step-description a:hover {
  text-decoration: underline;
}

/* Terms and Conditions Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions__terms-item {
  font-size: 1.1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-promotions__terms-item::before {
  content: "•";
  color: var(--glow-color, #57E38D);
  position: absolute;
  left: 0;
  font-size: 1.2rem;
  line-height: 1.6;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: var(--card-bg-color, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--gold-color, #F2C14E);
  user-select: none;
}

.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;
  width: 100%;
}

.page-promotions__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color, #57E38D);
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: left;
}

/* Call to Action Bottom */
.page-promotions__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

/* Images: Global responsive and min size */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* Ensure images within cards also adhere to min size */
.page-promotions__promo-card .page-promotions__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 30px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions__hero-description {
    font-size: 1.1rem;
  }
  .page-promotions__section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }
  .page-promotions__text-block {
    font-size: 1rem;
  }
  .page-promotions__promo-card.page-promotions__card {
    padding: 20px;
  }
  .page-promotions__card-title {
    font-size: 1.3rem;
  }
  .page-promotions__card-description {
    font-size: 0.95rem;
  }
}

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

  /* Force responsive images, videos, and buttons */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions 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; /* Add padding to buttons for better touch */
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
  }

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

  .page-promotions__hero-content {
    padding: 20px 15px;
    margin-top: 10px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-promotions__promo-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-promotions__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-promotions__step-number {
    margin-bottom: 10px;
  }
  .page-promotions__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }
}