/* style/promotions.css */

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

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

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

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Limit height on larger screens */
  z-index: 1;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  box-sizing: border-box;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 15px;
  margin-top: -100px; /* Overlap with image slightly */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--f888-gold-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__subtitle {
  font-size: 1.2rem;
  color: var(--f888-text-main);
  margin-bottom: 30px;
}

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

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

.page-promotions__btn-primary {
  background: var(--f888-btn-gradient);
  color: #ffffff;
  border: 2px solid var(--f888-glow-color);
  box-shadow: 0 0 15px var(--f888-glow-color);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 25px var(--f888-glow-color);
}

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

.page-promotions__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  transform: translateY(-3px);
}

/* General Sections */
.page-promotions__overview-section,
.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__why-choose-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 80px 0;
  background-color: var(--f888-bg-color);
}

.page-promotions__section-title {
  font-size: 2.5rem;
  color: var(--f888-gold-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--f888-glow-color);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__text-block {
  font-size: 1.1rem;
  color: var(--f888-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Types Section Grid */
.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions__card {
  background-color: var(--f888-card-bg);
  border: 1px solid var(--f888-border-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--f888-text-main);
}

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

.page-promotions__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__card-title {
  font-size: 1.6rem;
  color: var(--f888-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1rem;
  color: var(--f888-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: justify;
}

/* Guide Section Steps */
.page-promotions__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__step-item {
  background-color: var(--f888-card-bg);
  border: 1px solid var(--f888-border-color);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--f888-text-main);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions__step-title {
  font-size: 1.5rem;
  color: var(--f888-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__step-item p {
  color: var(--f888-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

/* Why Choose Section */
.page-promotions__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.page-promotions__feature-item {
  background-color: var(--f888-card-bg);
  border: 1px solid var(--f888-border-color);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--f888-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
}

.page-promotions__feature-item strong {
  color: var(--f888-gold-color);
  margin-right: 10px;
}

.page-promotions__feature-item::before {
  content: '✓';
  color: var(--f888-glow-color);
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.5rem;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--f888-gold-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-promotions__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Darker green with transparency */
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--f888-glow-color);
  transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: var(--f888-text-secondary);
  text-align: justify;
}

/* Hide default details arrow */
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-promotions__faq-item summary {
  list-style: none;
}

/* Conclusion Section */
.page-promotions__conclusion-section .page-promotions__text-block {
  font-size: 1.2rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-promotions__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__hero-section {
    padding: 10px 0 30px 0;
  }

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

  .page-promotions__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-promotions__subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__guide-section,
  .page-promotions__terms-section,
  .page-promotions__why-choose-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

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

  .page-promotions__text-block {
    font-size: 1rem;
  }

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

  .page-promotions__card {
    padding: 20px;
  }

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

  .page-promotions__step-item {
    padding: 20px;
  }

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

  .page-promotions__feature-item {
    font-size: 1rem;
    padding: 15px 20px;
  }

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

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

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all video elements are responsive */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  /* Ensure all button containers are responsive */
  .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;
    overflow: hidden !important;
  }
}

/* Contrast Fixes (if needed - currently using dark bg/light text as per color scheme) */
.page-promotions__dark-bg {
  color: var(--f888-text-main);
  background: var(--f888-card-bg);
}

.page-promotions__light-bg {
  color: #333333;
  background: #ffffff;
}