/* style/promotions.css */

/* Custom Colors */
:root {
  --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;
}

/* Base styles for the page content, ensuring contrast with body background */
/* Body background is var(--bg-color) from shared.css, which is #08160F (dark) */
.page-promotions {
  color: var(--page-promotions-text-main); /* Light text for dark background */
  background-color: var(--page-promotions-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__highlight {
  color: var(--page-promotions-gold);
  font-weight: bold;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  background-color: var(--page-promotions-background);
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 70vh; /* Limit height for hero image */
  z-index: 1;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__hero-title {
  color: var(--page-promotions-text-main);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-promotions__dark-section {
  background-color: var(--page-promotions-deep-green);
  color: var(--page-promotions-text-main);
  padding: 60px 20px;
}

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

.page-promotions__section-title {
  color: var(--page-promotions-text-main);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

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

.page-promotions__text-block {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-button-gradient);
  color: var(--page-promotions-text-main);
  border: none;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--page-promotions-gold);
  color: var(--page-promotions-background);
  transform: translateY(-3px);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-promotions__text-link {
  color: var(--page-promotions-gold);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions__text-link:hover {
  color: var(--page-promotions-glow);
}

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

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-promotions-text-main);
  border: 1px solid var(--page-promotions-border);
}

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

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

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

.page-promotions__card-description {
  color: var(--page-promotions-text-secondary);
  font-size: 0.95rem;
  margin-bottom: 25px;
}

/* Lists */
.page-promotions__list {
  max-width: 800px;
  margin: 0 auto 30px auto;
  list-style-type: disc;
  padding-left: 20px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__list-item {
  margin-bottom: 10px;
}

.page-promotions__steps-list {
  max-width: 800px;
  margin: 0 auto 30px auto;
  list-style-type: decimal;
  padding-left: 20px;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__steps-list strong {
  color: var(--page-promotions-text-main);
}

/* FAQ Section */
.page-promotions__faq-list {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 20px;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  color: var(--page-promotions-text-main);
  font-size: 1.1rem;
  background-color: var(--page-promotions-deep-green);
  border-bottom: 1px solid var(--page-promotions-border);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid var(--page-promotions-divider);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 20px;
  color: var(--page-promotions-text-secondary);
  font-size: 0.95rem;
  border-top: none;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }

  .page-promotions__hero-image {
    max-height: 50vh;
  }

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

  .page-promotions__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

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

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

  .page-promotions__section,
  .page-promotions__dark-section,
  .page-promotions__content-area {
    padding: 40px 15px;
  }

  .page-promotions__section-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }

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

  .page-promotions__offer-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card {
    padding: 20px;
  }

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

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

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

  .page-promotions__faq-answer {
    padding: 15px;
  }

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

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__offer-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section,
  .page-promotions__hero-content,
  .page-promotions__offer-grid,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

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