/* style/promotions.css */

/* Custom Colors */
:root {
  --page-promotions-primary-color: #11A84E;
  --page-promotions-secondary-color: #22C768;
  --page-promotions-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --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 {
  color: var(--page-promotions-text-main); /* Default text color for the page content */
  background-color: var(--page-promotions-background); /* Ensure consistent background */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-promotions-background);
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  max-width: 1920px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

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

.page-promotions__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__card-button {
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  box-sizing: border-box;
}

.page-promotions__btn-primary,
.page-promotions__card-button {
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  border: 2px solid var(--page-promotions-primary-color);
}

.page-promotions__btn-primary:hover,
.page-promotions__card-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(var(--page-promotions-primary-color), 0.4);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--page-promotions-primary-color);
  border: 2px solid var(--page-promotions-primary-color);
}

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

.page-promotions__section {
  padding: 60px 20px;
  background-color: var(--page-promotions-background);
  color: var(--page-promotions-text-main);
}

.page-promotions__overview-section {
  background-color: var(--page-promotions-background);
}

.page-promotions__promotion-types-section {
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__how-to-join-section {
  background-color: var(--page-promotions-background);
}

.page-promotions__why-choose-section {
  background-color: var(--page-promotions-deep-green);
}

.page-promotions__cta-bottom-section {
  padding: 40px 20px;
  text-align: center;
}

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

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

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

.page-promotions__sub-title {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  color: var(--page-promotions-text-main);
  margin-bottom: 25px;
  font-weight: 600;
  text-align: center;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--page-promotions-text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-promotions__feature-description,
.page-promotions__advantage-description {
  font-size: 1rem;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
}

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

.page-promotions__promotion-card {
  overflow: hidden;
  text-align: left;
}

.page-promotions__card-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

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

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

.page-promotions__card-button {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
}

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

.page-promotions__step-item {
  align-items: center;
  text-align: center;
}

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

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

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

.page-promotions__terms-conditions {
  margin-top: 60px;
  text-align: center;
}

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

  .page-promotions__section {
    padding: 40px 15px;
  }

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

  .page-promotions__hero-description {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  }

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

  .page-promotions__sub-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
  }
}

@media (max-width: 768px) {
  /* All images must be responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content must be responsive */
  .page-promotions__section,
  .page-promotions__container,
  .page-promotions__card,
  .page-promotions__hero-section,
  .page-promotions__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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;
  }

  .page-promotions__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__section {
    padding: 30px 15px;
  }

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

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

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

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

  .page-promotions__step-title {
    font-size: 1.2rem;
  }

  .page-promotions__text-block,
  .page-promotions__feature-description,
  .page-promotions__advantage-description,
  .page-promotions__card-description,
  .page-promotions__step-description {
    font-size: 0.9rem;
  }

  .page-promotions__features-grid,
  .page-promotions__promotion-cards-grid,
  .page-promotions__steps-grid,
  .page-promotions__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Contrast Fixes - Ensure text is readable on various backgrounds */
.page-promotions__dark-bg {
  color: var(--page-promotions-text-main);
}

.page-promotions__card {
  color: var(--page-promotions-text-main);
}

.page-promotions__text-block,
.page-promotions p,
.page-promotions li {
  color: var(--page-promotions-text-secondary);
}

/* Ensure brand colors are used safely */
.page-promotions__btn-primary,
.page-promotions__card-button {
  color: var(--page-promotions-text-main); /* White text on green gradient button */
}

.page-promotions__btn-secondary {
  color: var(--page-promotions-primary-color); /* Green text on transparent button */
}

.page-promotions__btn-secondary:hover {
  color: var(--page-promotions-text-main); /* White text on green background on hover */
}

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