/* style/promotions.css */

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

.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--p31000-text-main);
  background-color: var(--p31000-background); /* Default background, actual body background is from shared.css */
}

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

/* Sections */
.page-promotions__hero-section,
.page-promotions__current-promos,
.page-promotions__how-to-claim,
.page-promotions__promo-types,
.page-promotions__faq-section,
.page-promotions__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--p31000-background);
  color: var(--p31000-text-main);
}

.page-promotions__light-bg {
  background-color: #f2fff6; /* Use a very light version of the text-main for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__type-title,
.page-promotions__light-bg .page-promotions__type-text {
  color: #333333; /* Ensure dark text on light background */
}

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

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  color: var(--p31000-text-main);
}

.page-promotions__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--p31000-gold);
  /* No fixed font-size, rely on clamp for responsiveness if needed, but not fixed */
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--p31000-text-secondary);
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--p31000-button-gradient);
  color: var(--p31000-text-main);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--p31000-primary-color);
  border-color: var(--p31000-primary-color);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--p31000-primary-color);
  color: var(--p31000-text-main);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.3);
}

.page-promotions__btn-read-more {
  background: var(--p31000-button-gradient);
  color: var(--p31000-text-main);
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
  white-space: normal;
}

.page-promotions__btn-read-more:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* General Content Styling */
.page-promotions__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--p31000-gold);
}

.page-promotions__light-bg .page-promotions__section-title {
  color: var(--p31000-deep-green);
}

.page-promotions__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--p31000-text-secondary);
}

.page-promotions__light-bg .page-promotions__section-description {
  color: #555555;
}

/* 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 {
  background-color: var(--p31000-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--p31000-text-main);
  border: 1px solid var(--p31000-border);
}

.page-promotions__light-bg .page-promotions__promo-card {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-color: #e0e0e0;
}

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

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__light-bg .page-promotions__card-title {
  color: var(--p31000-deep-green);
}

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
  color: var(--p31000-text-secondary);
}

.page-promotions__light-bg .page-promotions__card-text {
  color: #555555;
}

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

.page-promotions__step-item {
  background-color: var(--p31000-card-bg);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--p31000-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--p31000-gold);
}

.page-promotions__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--p31000-text-secondary);
}

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

.page-promotions__type-item {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
}

.page-promotions__type-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--p31000-deep-green);
}

.page-promotions__type-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

/* FAQ Section */
.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(--p31000-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--p31000-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: var(--p31000-text-main);
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--p31000-gold);
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

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

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

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

/* CTA Bottom */
.page-promotions__cta-bottom {
  padding: 100px 0;
}

.page-promotions__cta-bottom .page-promotions__container {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.page-promotions__cta-content {
  flex: 1;
}

.page-promotions__cta-image {
  flex-shrink: 0;
  width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--p31000-border);
}

/* Image styles - no filter allowed except for hero background dimming */
.page-promotions img:not(.page-promotions__hero-image) {
  filter: none; /* Ensure no filter on other images */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 4rem);
  }

  .page-promotions__section-title {
    font-size: 2rem;
  }

  .page-promotions__cta-bottom .page-promotions__container {
    flex-direction: column;
    text-align: center;
  }

  .page-promotions__cta-image {
    width: 100%;
    max-width: 600px;
  }
}

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

  .page-promotions__hero-section,
  .page-promotions__current-promos,
  .page-promotions__how-to-claim,
  .page-promotions__promo-types,
  .page-promotions__faq-section,
  .page-promotions__cta-bottom {
    padding: 60px 0;
  }

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

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

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

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

  .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;
    padding-right: 15px;
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__type-item,
  .page-promotions__faq-item {
    margin-left: 15px;
    margin-right: 15px;
    max-width: calc(100% - 30px);
  }

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

  .page-promotions__section-title {
    font-size: 1.8rem;
  }

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

  /* All images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image containers */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__promo-types-grid,
  .page-promotions__faq-list,
  .page-promotions__cta-bottom .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video section top padding (if video exists) */
  .page-promotions__video-section {
    padding-top: 10px !important; 
  }

  /* Ensure FAQ summary text wraps */
  .page-promotions__faq-item summary {
    flex-wrap: wrap;
  }
  .page-promotions__faq-toggle {
    margin-top: 5px;
    margin-left: 0;
    width: 100%;
    text-align: right;
  }
}