/* style/promotions.css */

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

.page-promotions {
  color: var(--f188-text-main);
  background-color: var(--f188-background);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px 20px; /* body handles padding-top, this is decorative */
  background-color: var(--f188-deep-green);
  overflow: hidden;
  text-align: center;
}

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

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

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--f188-text-main);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-promotions__intro-text {
  font-size: 1.1em;
  color: var(--f188-text-secondary);
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--f188-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

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

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

.page-promotions__btn-secondary:hover {
  background: var(--f188-glow-color);
  color: var(--f188-deep-green);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.2);
}

.page-promotions__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--f188-text-main);
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__section-description {
  font-size: 1.05em;
  color: var(--f188-text-secondary);
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-promotions__card,
.page-promotions__product-card,
.page-promotions__step-card,
.page-promotions__feature-item,
.page-promotions__dark-bg {
  background-color: var(--f188-card-bg);
  border: 1px solid var(--f188-border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--f188-text-main);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover,
.page-promotions__product-card:hover,
.page-promotions__step-card:hover,
.page-promotions__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__card-title,
.page-promotions__product-title,
.page-promotions__step-title,
.page-promotions__feature-title {
  font-size: 1.5em;
  color: var(--f188-gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__card-text,
.page-promotions__product-text,
.page-promotions__step-text,
.page-promotions__feature-text {
  font-size: 0.95em;
  color: var(--f188-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--f188-text-secondary);
}

.page-promotions__card-list li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-promotions__card-list li::before {
  content: '✔';
  color: var(--f188-glow-color);
  position: absolute;
  left: 0;
  top: 0;
}

.page-promotions__terms-conditions .page-promotions__content-block {
  text-align: left;
  padding: 40px;
  margin-top: 40px;
}

.page-promotions__content-subtitle {
  font-size: 1.3em;
  color: var(--f188-text-main);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__content-text {
  font-size: 1em;
  color: var(--f188-text-secondary);
  margin-bottom: 20px;
}

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

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

.page-promotions__step-number {
  background: var(--f188-button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-promotions__faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--f188-border-color);
  border-radius: 8px;
  overflow: hidden;
  color: var(--f188-text-main);
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  background-color: var(--f188-deep-green);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--f188-text-main);
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

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

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

.page-promotions__faq-answer {
  padding: 20px 25px;
  background-color: var(--f188-card-bg);
  color: var(--f188-text-secondary);
  font-size: 0.95em;
  border-top: 1px solid var(--f188-divider-color);
}

.page-promotions__view-all-faq {
  margin-top: 30px;
  display: inline-block;
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  border-radius: 0; /* ensure no weird border-radius on icons */
  min-width: 200px; /* Enforce min size for icons */
  min-height: 200px;
  width: auto; /* allow auto width */
  height: auto;
}

.page-promotions__cta-final {
  padding: 80px 20px;
  background-color: var(--f188-deep-green);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px 15px;
  }

  .page-promotions__hero-image {
    max-height: 400px;
    margin-bottom: 20px;
  }

  .page-promotions__main-title {
    font-size: 2em;
  }

  .page-promotions__intro-text {
    font-size: 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 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-promotions__card-grid,
  .page-promotions__product-grid,
  .page-promotions__guide-steps,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__product-card,
  .page-promotions__step-card,
  .page-promotions__feature-item {
    padding: 25px;
  }

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

  .page-promotions__content-block {
    padding: 25px;
  }

  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }

  .page-promotions__feature-icon {
    width: 150px;
    height: 150px;
    min-width: 200px !important;
    min-height: 200px !important;
    width: auto !important;
    height: auto !important;
  }

  .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__promotion-types,
  .page-promotions__product-promotions,
  .page-promotions__terms-conditions,
  .page-promotions__guide-section,
  .page-promotions__faq-section,
  .page-promotions__why-choose-us,
  .page-promotions__cta-final,
  .page-promotions__content-block,
  .page-promotions__faq-list,
  .page-promotions__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.8em;
  }

  .page-promotions__section-title {
    font-size: 1.6em;
  }

  .page-promotions__card-title,
  .page-promotions__product-title,
  .page-promotions__step-title,
  .page-promotions__feature-title {
    font-size: 1.3em;
  }
}