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

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

.page-promotions__dark-bg {
  background-color: var(--k89xs-page-bg);
  color: var(--k89xs-text-main);
}

.page-promotions__light-bg {
  background-color: var(--k89xs-card-bg);
  color: var(--k89xs-text-main);
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--k89xs-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--k89xs-button-gradient);
  color: #ffffff; /* Explicit white for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__btn-secondary:hover {
  background-color: var(--k89xs-border-color);
  color: var(--k89xs-text-main);
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.page-promotions__btn-large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--k89xs-gold-color);
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: 1.1rem;
  color: var(--k89xs-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

.page-promotions__promo-card {
  background-color: var(--k89xs-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--k89xs-text-main);
  border: 1px solid var(--k89xs-border-color);
}

.page-promotions__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--k89xs-gold-color);
  padding: 20px 20px 10px;
}

.page-promotions__promo-description {
  font-size: 0.95rem;
  color: var(--k89xs-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-promotions__how-to-claim {
  background-color: var(--k89xs-deep-green);
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--k89xs-text-main);
}

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

.page-promotions__step-item {
  background-color: var(--k89xs-card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--k89xs-border-color);
}

.page-promotions__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--k89xs-button-gradient);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  border: 3px solid var(--k89xs-page-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--k89xs-gold-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-promotions__step-description {
  font-size: 0.95rem;
  color: var(--k89xs-text-secondary);
}

.page-promotions__step-item .page-promotions__btn-primary {
  margin-top: 20px;
}

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

.page-promotions__feature-item {
  background-color: var(--k89xs-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--k89xs-border-color);
}

.page-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--k89xs-gold-color);
  margin-bottom: 10px;
}

.page-promotions__feature-description {
  font-size: 0.9rem;
  color: var(--k89xs-text-secondary);
}

.page-promotions__faq-section {
  background-color: var(--k89xs-deep-green);
}

.page-promotions__faq-section .page-promotions__section-title {
  color: var(--k89xs-text-main);
}

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

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

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

.page-promotions__faq-question:hover {
  background-color: var(--k89xs-border-color);
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 15px;
  color: var(--k89xs-gold-color);
}

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--k89xs-text-secondary);
  line-height: 1.5;
}

.page-promotions__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

/* details tag specific styles for FAQ */
.page-promotions__faq-item details > summary {
  list-style: none;
}

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

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

.page-promotions__faq-item details:not([open]) .page-promotions__faq-answer {
  padding-top: 0;
  padding-bottom: 0;
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item details[open] .page-promotions__faq-answer {
  height: auto; /* Will be overridden by JS for smooth transition if needed */
  transition: height 0.3s ease-in, padding 0.3s ease-in;
}

.page-promotions__cta-bottom {
  text-align: center;
  padding-bottom: 80px;
}

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

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 10px;
  }

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

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

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

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

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

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

  .page-promotions__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 15px;
  }

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

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

  .page-promotions__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: -15px;
  }

  .page-promotions__step-title {
    font-size: 1.2rem;
    margin-top: 15px;
  }

  .page-promotions__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-promotions__feature-title {
    font-size: 1.1rem;
  }

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

  .page-promotions__faq-answer {
    padding: 0 15px 15px;
    font-size: 0.9rem;
  }

  /* Ensure all images are responsive */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__promo-card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-item,
  .page-promotions__section,
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid,
  .page-promotions__faq-list,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal overflow */
  }
  .page-promotions__hero-content { padding-left: 0; padding-right: 0; } /* Reset for hero content */

  .page-promotions__promo-card .page-promotions__btn-secondary {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
  }
}

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

/* Ensure video responsiveness (if any were added) */
.page-promotions video,
.page-promotions__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-promotions__video-section,
.page-promotions__video-container,
.page-promotions__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .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;
  }
  
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}