/* style/promotions.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --background-color-page: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --border-color: #e0e0e0;
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  background-color: var(--primary-color);
  color: var(--text-color-light);
  text-align: center;
  overflow: hidden;
}

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

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

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

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

.page-promotions__intro-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: var(--text-color-light);
}

.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: 700;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: var(--login-color);
  color: var(--secondary-color);
  border: 2px solid var(--login-color);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Content Area */
.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  color: var(--text-color-dark);
  background-color: var(--background-color-page);
}

.page-promotions__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

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

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

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

.page-promotions__card {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__card-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  margin-top: auto;
}

/* Info Grid (Terms & Conditions) */
.page-promotions__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.page-promotions__info-card {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.page-promotions__info-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__info-text {
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Steps Grid (How to Participate) */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-promotions__step-card {
  background-color: var(--secondary-color);
  color: var(--text-color-dark);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-promotions__step-icon {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-promotions__step-text {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__step-btn {
  margin-top: auto;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid var(--border-color);
  list-style: none;
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  border-bottom: 1px solid transparent;
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
}

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

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

/* Feature Grid (Why Choose Kwin68) */
.page-promotions__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-promotions__feature-card {
  background-color: var(--primary-color);
  color: var(--text-color-light);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-promotions__feature-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-promotions__feature-text {
  font-size: 1rem;
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-promotions__cta-title {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: inherit;
}

.page-promotions__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-promotions__intro-text {
    font-size: 1.1rem;
  }
}

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

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

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

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

  .page-promotions__intro-text {
    font-size: 1rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__content-area,
  .page-promotions__dark-section,
  .page-promotions__cta-final {
    padding: 30px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .page-promotions__section-description {
    font-size: 0.95rem;
  }

  .page-promotions__grid,
  .page-promotions__info-grid,
  .page-promotions__steps-grid,
  .page-promotions__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card,
  .page-promotions__info-card,
  .page-promotions__step-card,
  .page-promotions__feature-card {
    padding: 20px;
  }

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

  .page-promotions__card-title,
  .page-promotions__info-title,
  .page-promotions__step-title,
  .page-promotions__feature-title {
    font-size: 1.3rem;
  }

  .page-promotions__card-text,
  .page-promotions__info-text,
  .page-promotions__step-text,
  .page-promotions__feature-text {
    font-size: 0.9rem;
  }

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

  .page-promotions__faq-toggle {
    font-size: 1.5rem;
  }

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

  /* Image, Video, and Container Mobile Responsiveness */
  .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-image-wrapper,
  .page-promotions__grid,
  .page-promotions__info-grid,
  .page-promotions__steps-grid,
  .page-promotions__feature-grid,
  .page-promotions__faq-list,
  .page-promotions__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}