/* style/promotions.css */

/* Custom properties for colors from the prompt */
:root {
  --page-promotions-card-bg: #11271B;
  --page-promotions-background: #08160F;
  --page-promotions-text-main: #F2FFF6;
  --page-promotions-text-secondary: #A7D9B8;
  --page-promotions-border: #2E7A4E;
  --page-promotions-glow: #57E38D;
  --page-promotions-gold: #F2C14E;
  --page-promotions-divider: #1E3A2A;
  --page-promotions-deep-green: #0A4B2C;
  --page-promotions-primary-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-promotions-primary-color: #11A84E; /* Main color */
  --page-promotions-secondary-color: #22C768; /* Auxiliary color */
}

/* Base styles for the page content */
.page-promotions {
  background-color: var(--page-promotions-background); /* Dark background */
  color: var(--page-promotions-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-promotions__hero-content {
  position: relative; /* Ensure content is above any potential background overlap if not handled */
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px 0;
  background: var(--page-promotions-background); /* Explicit background to prevent text blending with image below */
  border-radius: 8px;
  margin-top: -80px; /* Pull content up over the image slightly for visual flow */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--page-promotions-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__intro-text {
  font-size: 1.1rem;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

/* General button styles */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-promotions__btn-primary {
  background: var(--page-promotions-primary-btn-gradient);
  color: var(--page-promotions-text-main); /* White text */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-promotions-primary-color), 0.4);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-glow);
  color: var(--page-promotions-background); /* Dark text on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(var(--page-promotions-glow), 0.2);
}

/* Section titles and descriptions */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--page-promotions-text-main);
  text-align: center;
  margin-bottom: 20px;
}

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

/* Promotions Grid Section */
.page-promotions__promotions-grid {
  padding: 80px 20px;
  background-color: var(--page-promotions-background); /* Consistent dark background */
}

.page-promotions__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block; /* Ensure image is a block element */
}

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

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

.page-promotions__promotion-card .page-promotions__btn-primary {
  margin-top: auto; /* Align button to bottom */
  width: fit-content; /* Allow button to size to content */
  align-self: flex-start; /* Align button to start of card */
  padding: 12px 25px;
  font-size: 0.9rem;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 20px;
  background-color: var(--page-promotions-deep-green); /* Slightly different dark background */
  color: var(--page-promotions-text-main);
}

.page-promotions__steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__step-card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border);
  display: flex;
  flex-direction: column;
}

.page-promotions__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  background: var(--page-promotions-primary-btn-gradient);
  color: var(--page-promotions-text-main);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 0 15px rgba(var(--page-promotions-glow), 0.4);
}

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--page-promotions-text-main);
  margin-bottom: 15px;
}

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

.page-promotions__step-card .page-promotions__btn-secondary {
  margin-top: auto;
  align-self: center;
  width: fit-content;
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 20px;
  background-color: var(--page-promotions-background);
}

.page-promotions__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

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

.page-promotions__faq-item[open] {
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-promotions-text-main);
  user-select: none;
  transition: color 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  color: var(--page-promotions-glow);
}

.page-promotions__faq-question::-webkit-details-marker,
.page-promotions__faq-question::marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 20px;
  color: var(--page-promotions-glow);
}

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

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-promotions__hero-content {
    margin-top: -40px;
    padding: 30px 15px 0;
  }

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

  .page-promotions__intro-text {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Ensure all sections/containers are responsive */
  .page-promotions__hero-section,
  .page-promotions__promotions-grid,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__cta-section,
  .page-promotions__grid-container,
  .page-promotions__steps-container,
  .page-promotions__faq-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__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }

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

  .page-promotions__promotion-card {
    padding: 20px;
  }

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

  .page-promotions__card-text {
    font-size: 0.9rem;
  }

  .page-promotions__card-image {
    height: 180px;
  }
  
  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

/* Ensure all images adhere to min-size and no filters */
.page-promotions img {
  min-width: 200px;
  min-height: 200px;
  filter: none !important;
}