/* style/promotions.css */

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-promotions__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Fixes */
.page-promotions__dark-bg {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for contrast */
}

.page-promotions__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-title a,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__product-title a,
.page-promotions__light-bg .page-promotions__product-text,
.page-promotions__light-bg .page-promotions__benefit-title,
.page-promotions__light-bg .page-promotions__benefit-text,
.page-promotions__light-bg .page-promotions__terms-item,
.page-promotions__light-bg .page-promotions__faq-question h3,
.page-promotions__light-bg .page-promotions__faq-answer p {
  color: #333333;
}

/* Hero Section */
.page-promotions__hero-section {
  padding: 80px 20px 60px; /* Adjusted to allow for header offset on desktop */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  text-align: center;
  background-image: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg:1920x1080:hi_8,promotions,hero_background,abstract_geometric]');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Special color for hero title */
  font-weight: 900;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

.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.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__hero-section .page-promotions__btn-secondary {
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-promotions__light-bg .page-promotions__btn-secondary {
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #FFFF00;
}

.page-promotions__light-bg .page-promotions__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  padding: 60px 0;
}

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

.page-promotions__promo-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-promotions__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

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

.page-promotions__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-title a {
  text-decoration: none;
  color: #017439;
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: #C30808;
}

.page-promotions__card-text {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  align-self: flex-start;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background-color: #005a2d;
}

/* Product Specific Promos Section */
.page-promotions__product-specific-promos {
  padding: 60px 0;
  text-align: center;
}

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

.page-promotions__product-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-promotions__product-card:hover {
  transform: translateY(-5px);
}

.page-promotions__product-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-promotions__product-title {
  font-size: 1.3em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__product-title a {
  text-decoration: none;
  color: #FFFF00;
  transition: color 0.3s ease;
}

.page-promotions__product-title a:hover {
  color: #ffffff;
}

.page-promotions__product-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* VIP Program Section */
.page-promotions__vip-program {
  padding: 60px 0;
  text-align: center;
}

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

.page-promotions__benefit-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-promotions__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-promotions__benefit-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__benefit-text {
  font-size: 0.95em;
  color: #555;
}

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

/* Guide Section */
.page-promotions__guide-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  width: 50px;
  height: 50px;
  background-color: #FFFF00; /* Yellow number background */
  color: #017439;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  border: 2px solid #017439;
}

.page-promotions__step-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions {
  padding: 60px 0;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__terms-item {
  font-size: 1em;
  color: #333333;
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-promotions__terms-item::before {
  content: '•';
  color: #017439;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -3px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
}

.page-promotions__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #017439;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #005a2d;
}

.page-promotions__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px !important;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.95em;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-promotions__hero-title {
    font-size: 2.5em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 1em;
  }

  .page-promotions__promo-grid,
  .page-promotions__product-grid,
  .page-promotions__vip-benefits,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__container {
    padding: 0 15px;
  }
  
  /* Image responsive adjustments */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__promo-image,
  .page-promotions__product-image,
  .page-promotions__benefit-icon {
    min-width: 200px !important; /* Enforce min size even on mobile */
    min-height: 200px !important;
    width: 100% !important; /* Ensure images fill container */
    height: auto !important;
  }
  
  /* General container responsiveness */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__promo-card,
  .page-promotions__product-card,
  .page-promotions__benefit-item,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__cta-buttons {
    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__faq-question {
    padding: 15px;
  }
  .page-promotions__faq-answer {
    padding: 0 15px;
  }
  .page-promotions__faq-item.active .page-promotions__faq-answer {
    padding: 15px !important;
  }

  .page-promotions__terms-item {
    padding-left: 20px;
  }
  .page-promotions__terms-item::before {
    left: -5px;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 0.95em;
  }
  .page-promotions__section-title {
    font-size: 1.5em;
  }
  .page-promotions__section-description {
    font-size: 0.9em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-promotions__card-title {
    font-size: 1.3em;
  }
  .page-promotions__product-title {
    font-size: 1.1em;
  }
  .page-promotions__benefit-title,
  .page-promotions__step-title {
    font-size: 1.2em;
  }
}