/* style/promotions.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-promotions {
  background-color: var(--color-background); /* Ensures the main content area has the specified background */
  color: var(--color-text-main); /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.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; /* Enforce image on top, text below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-deep-green); /* A slightly different dark green for the hero background */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Constrain image width for desktop */
  margin-bottom: 30px; /* Space between image and text */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 1; /* Ensure text is above any potential background elements */
  color: var(--color-text-main);
}

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

.page-promotions__lead-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--color-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section titles */
.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--color-gold);
  border-radius: 2px;
}

.page-promotions__section-title--center {
  text-align: center;
}

/* Text blocks */
.page-promotions__text-block {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

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

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

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

.page-promotions__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-text-main);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__card-button {
  width: 100%;
  margin-top: auto; /* Push button to bottom of card */
}

/* Promotion Categories Section */
.page-promotions__promotion-categories {
  padding: 60px 0;
  background-color: var(--color-background);
}

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

.page-promotions__promotion-card {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border);
}

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

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

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

.page-promotions__card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

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

.page-promotions__step-item {
  background-color: var(--color-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-border);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  border-radius: 50%;
  background: var(--gradient-button);
  color: var(--color-text-main);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__step-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.page-promotions__step-description a {
  color: var(--color-gold);
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: var(--color-glow);
}

.page-promotions__cta-buttons--center {
  margin-top: 40px;
}

/* Promotion Tips Section */
.page-promotions__promotion-tips {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-promotions__tip-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--color-text-secondary);
}

.page-promotions__tip-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-promotions__tip-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

.page-promotions__list-highlight {
  color: var(--color-text-main);
}

.page-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Why You88 Section */
.page-promotions__why-you88 {
  padding: 60px 0;
  background-color: var(--color-deep-green);
}

.page-promotions__why-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  color: var(--color-text-secondary);
}

.page-promotions__why-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-promotions__why-list li::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--color-gold);
  font-weight: bold;
}

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

.page-promotions__faq-list {
  margin-top: 40px;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for summary */
}

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

.page-promotions__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-gold);
  margin-left: 15px;
}

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

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

.page-promotions__faq-answer a {
  color: var(--color-gold);
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: var(--color-glow);
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 60px 0;
  background-color: var(--color-deep-green);
  text-align: center;
}

.page-promotions__cta-container {
  max-width: 900px;
}

/* Links within content */
.page-promotions a {
  color: var(--color-secondary); /* Default link color for readability */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions a:hover {
  color: var(--color-glow);
  text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__main-title {
    font-size: 2.8rem;
  }
  .page-promotions__lead-text {
    font-size: 1.2rem;
  }
  .page-promotions__section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* Global mobile padding for sections */
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__promotion-categories,
  .page-promotions__how-to-claim,
  .page-promotions__promotion-tips,
  .page-promotions__why-you88,
  .page-promotions__faq-section,
  .page-promotions__cta-final {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small top padding for hero */
    padding-bottom: 40px !important;
  }

  .page-promotions__main-title {
    font-size: 2.2rem !important;
    line-height: 1.3 !important;
  }

  .page-promotions__lead-text {
    font-size: 1rem !important;
  }

  .page-promotions__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 20px !important;
  }

  .page-promotions__text-block,
  .page-promotions__tip-list li,
  .page-promotions__why-list li,
  .page-promotions__faq-answer {
    font-size: 1rem !important;
  }
  
  /* Images responsive styles */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__card-image {
    height: auto !important; /* Allow height to adjust for mobile */
  }

  /* Buttons responsive styles */
  .page-promotions__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
  }

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

  .page-promotions__promotion-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    padding: 20px !important;
  }

  .page-promotions__faq-question {
    font-size: 1.1rem !important;
    padding: 15px 20px !important;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px !important;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8rem !important;
  }
  .page-promotions__section-title {
    font-size: 1.6rem !important;
  }
}