/* style/promotions.css */

/* Base styles for the promotions page content */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color, adjust based on body background */
  background-color: var(--background); /* Default background, will be overridden by shared.css body */
  line-height: 1.6;
}

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

/* Ensure text color adapts to potential dark background from shared.css */
/* Assuming shared.css sets body background to a dark color like #08160F */
.page-promotions {
  color: var(--text-main); /* Use light text color for dark background */
}

/* Sections */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden; /* Prevent content overflow */
}

.page-promotions__section:nth-child(even) {
  background-color: var(--background); /* Use deep background for alternating sections */
}

.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; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  color: var(--text-main);
  background-color: var(--background); /* Ensure dark background for hero section */
}

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

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

.page-promotions__hero-content {
  margin-top: 40px; /* Space between image and content */
  max-width: 800px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold-color); /* Use gold for main title */
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

/* General Titles & Text */
.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--primary-color);
  text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-promotions__text-block {
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* CTA Buttons */
.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: var(--button-gradient);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  margin: 10px;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button--secondary {
  background: var(--card-bg);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.page-promotions__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

.page-promotions__cta-small-button {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: var(--button-gradient);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 10px;
}

.page-promotions__cta-small-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* Features Grid */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-promotions__feature-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--divider-color);
}

.page-promotions__feature-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too wide */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* For max-width to work correctly */
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__feature-description {
  color: var(--text-secondary);
}

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

.page-promotions__promo-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--divider-color);
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__promo-card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to take up remaining space */
  display: flex;
  flex-direction: column;
}

.page-promotions__promo-card-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--gold-color);
}

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

.page-promotions__promo-card-button {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: var(--button-gradient);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  align-self: flex-start; /* Align button to start of content */
}

.page-promotions__promo-card-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* How to Claim Steps */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 30px;
}

.page-promotions__step-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: left;
  border: 1px solid var(--divider-color);
}

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

.page-promotions__step-description {
  color: var(--text-secondary);
}

/* Terms and Conditions */
.page-promotions__terms-conditions {
  background-color: var(--background);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  gap: 25px;
}

.page-promotions__terms-item {
  background-color: var(--card-bg);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  border: 1px solid var(--divider-color);
}

.page-promotions__terms-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gold-color);
}

.page-promotions__terms-description {
  color: var(--text-secondary);
}

/* FAQ Section */
.page-promotions__faq {
  padding-bottom: 80px; /* More space at the bottom */
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green); /* Slightly different background for question */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: color-mix(in srgb, var(--deep-green) 80%, black 20%);
}

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

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

.page-promotions__faq-answer p {
  margin: 0;
}

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

.page-promotions__dark-section .page-promotions__section-title {
  color: var(--gold-color);
}

.page-promotions__dark-section .page-promotions__text-block {
  color: var(--text-secondary);
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 10px 0 50px 0;
  }

  .page-promotions__main-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
  }

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

  .page-promotions__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-promotions__hero-content {
    margin-top: 30px;
  }

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

  .page-promotions__hero-description {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__cta-button,
  .page-promotions__cta-button--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;
    padding-right: 15px;
    margin: 10px 0 !important;
  }

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

  .page-promotions__feature-item,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__terms-item,
  .page-promotions__faq-item {
    padding: 20px;
  }

  .page-promotions__feature-title,
  .page-promotions__promo-card-title,
  .page-promotions__step-title,
  .page-promotions__terms-title {
    font-size: 1.2rem;
  }

  .page-promotions__promo-card-image {
    height: 180px;
  }

  .page-promotions__promo-card-button {
    width: 100%;
    text-align: center;
  }

  /* Image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__features-grid,
  .page-promotions__promo-cards-grid,
  .page-promotions__steps-list,
  .page-promotions__terms-list,
  .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;
  }
  
  .page-promotions__hero-content {
    padding: 0 15px;
  }

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

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

@media (max-width: 480px) {
  .page-promotions__section {
    padding: 30px 0;
  }

  .page-promotions__hero-section {
    padding: 10px 0 30px 0;
  }

  .page-promotions__main-title {
    font-size: clamp(1.6rem, 8vw, 2.2rem);
  }

  .page-promotions__hero-description {
    font-size: 0.9rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }

  .page-promotions__cta-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .page-promotions__promo-card-image {
    height: 150px;
  }
}