/* style/promotions.css */

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

.page-promotions {
  background-color: var(--kp88-background);
  color: var(--kp88-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;
}

.page-promotions__section {
  padding: 80px 0;
}

.page-promotions__dark-section {
  background-color: var(--kp88-background);
  color: var(--kp88-text-main);
}

.page-promotions__light-bg {
  background-color: #f8f9fa; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  text-align: center;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: var(--kp88-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

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

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

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--kp88-glow);
  color: var(--kp88-background);
  transform: translateY(-2px);
}

.page-promotions__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 30px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Why KP88 Promotions */
.page-promotions__why-kp88-promotions .page-promotions__text-block {
  color: #555555;
}

.page-promotions__why-kp88-promotions .page-promotions__section-title {
  color: #333333;
}

.page-promotions__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  color: #333333;
}

.page-promotions__feature-heading {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--kp88-deep-green);
  margin-bottom: 15px;
}

.page-promotions__feature-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666666;
}

/* Promotion Types */
.page-promotions__promotion-types {
  background-color: var(--kp88-background);
}

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

.page-promotions__card {
  background-color: var(--kp88-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--kp88-border);
}

.page-promotions__card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-promotions__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--kp88-text-main);
  margin-bottom: 15px;
}

.page-promotions__card-content p {
  font-size: 0.95rem;
  color: var(--kp88-text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-promotions__btn-link {
  display: inline-block;
  background: var(--kp88-button-gradient);
  color: var(--kp88-text-main);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9rem;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.page-promotions__btn-link:hover {
  opacity: 0.9;
}

/* Claim Guide */
.page-promotions__claim-guide .page-promotions__section-title {
  color: #333333;
}

.page-promotions__claim-guide .page-promotions__text-block {
  color: #555555;
}

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

.page-promotions__guide-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-promotions__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--kp88-deep-green);
  color: var(--kp88-text-main);
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-promotions__step-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--kp88-deep-green);
  margin-bottom: 15px;
}

.page-promotions__guide-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #666666;
  margin-bottom: 20px;
}

.page-promotions__btn-small {
  display: inline-block;
  background: var(--kp88-button-gradient);
  color: var(--kp88-text-main);
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  transition: background 0.3s ease;
}

.page-promotions__btn-small:hover {
  opacity: 0.9;
}

.page-promotions__guide-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin-top: 50px;
  border-radius: 12px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
  background-color: var(--kp88-deep-green);
  color: var(--kp88-text-main);
}

.page-promotions__terms-conditions .page-promotions__section-title {
  color: var(--kp88-text-main);
}

.page-promotions__terms-conditions .page-promotions__text-block {
  color: var(--kp88-text-secondary);
}

.page-promotions__terms-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  margin-bottom: 15px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--kp88-text-secondary);
}

.page-promotions__text-highlight {
  font-weight: bold;
  color: var(--kp88-text-main);
}

/* FAQ Section */
.page-promotions__faq-section .page-promotions__section-title {
  color: #333333;
}

.page-promotions__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__faq-item {
  background-color: #ffffff;
  border: 1px solid var(--kp88-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  color: #333333;
}

.page-promotions__faq-item details > summary {
  list-style: none;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: var(--kp88-deep-green);
  cursor: pointer;
  background-color: #fcfcfc;
  transition: background-color 0.3s ease;
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--kp88-glow);
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
}

/* Final CTA */
.page-promotions__cta-final {
  background-color: var(--kp88-background);
  color: var(--kp88-text-main);
  text-align: center;
}

.page-promotions__cta-final .page-promotions__section-title {
  color: var(--kp88-text-main);
}

.page-promotions__cta-final .page-promotions__text-block {
  color: var(--kp88-text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: 20px;
  }

  .page-promotions__section {
    padding: 60px 0;
  }

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }

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

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

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

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

  .page-promotions__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 30px;
  }

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

  .page-promotions__feature-list,
  .page-promotions__card-grid,
  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-promotions__feature-item,
  .page-promotions__card,
  .page-promotions__guide-item,
  .page-promotions__faq-item {
    padding: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-promotions__card-content p {
    font-size: 0.9rem;
  }

  .page-promotions__btn-link {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  .page-promotions__guide-image {
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-promotions__terms-list {
    padding-left: 20px;
  }

  .page-promotions__terms-list li {
    font-size: 0.95rem;
  }

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

  .page-promotions__faq-answer {
    font-size: 0.95rem;
    padding: 10px 20px 15px;
  }

  /* Image and Video Responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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