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

.page-promotions {
  color: var(--pk789-text-main);
  background-color: var(--pk789-background);
  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__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--pk789-deep-green);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  height: auto;
  overflow: hidden;
}

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

.page-promotions__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  background: var(--pk789-card-bg);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 1;
  position: relative;
  border: 1px solid var(--pk789-border);
}

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

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

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

.page-promotions__btn-primary {
  background: var(--pk789-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: none;
  color: var(--pk789-green-secondary);
  border: 2px solid var(--pk789-green-secondary);
  margin-left: 15px; /* Spacing for multiple buttons */
}

.page-promotions__btn-secondary:hover {
  background: var(--pk789-green-secondary);
  color: #ffffff;
  transform: translateY(-3px);
}

.page-promotions__introduction-section,
.page-promotions__types-section,
.page-promotions__guide-section,
.page-promotions__terms-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--pk789-divider);
}

.page-promotions__introduction-section {
  background-color: var(--pk789-background);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--pk789-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

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

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

.page-promotions__card {
  background-color: var(--pk789-card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--pk789-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

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

.page-promotions__card-text {
  font-size: 1rem;
  color: var(--pk789-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__card .page-promotions__btn-secondary {
  margin-left: 0;
  margin-top: 10px;
  width: fit-content;
}

.page-promotions__guide-section {
  background-color: var(--pk789-deep-green);
  text-align: center;
}

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

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

.page-promotions__step-icon {
  background: var(--pk789-button-gradient);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 0 15px var(--pk789-glow);
}

.page-promotions__step-title {
  font-size: 1.6rem;
  color: var(--pk789-green-secondary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-promotions__step-text {
  font-size: 1rem;
  color: var(--pk789-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  margin-top: 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--pk789-border);
}

.page-promotions__terms-section {
  background-color: var(--pk789-background);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  background-color: var(--pk789-card-bg);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  border-left: 5px solid var(--pk789-green-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__terms-list li p {
  margin: 0;
  color: var(--pk789-text-secondary);
  font-size: 1.05rem;
}

.page-promotions__terms-list li p strong {
  color: var(--pk789-green-secondary);
}

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

.page-promotions__faq-list {
  margin-top: 30px;
}

.page-promotions__faq-item {
  background-color: var(--pk789-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  border: 1px solid var(--pk789-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

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

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

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: var(--pk789-gold);
}

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

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

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

.page-promotions__faq-answer .page-promotions__btn-secondary {
  margin-left: 0;
  margin-top: 15px;
}

.page-promotions__conclusion-section {
  text-align: center;
  background-color: var(--pk789-background);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -50px;
    padding: 30px;
  }

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

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

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

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

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

  .page-promotions__hero-content {
    margin-top: -30px;
    padding: 20px;
    border-radius: 10px;
  }

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

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

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

  .page-promotions__card .page-promotions__btn-secondary {
    margin-bottom: 0;
  }

  .page-promotions__grid-cards {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-promotions__card {
    margin-left: 15px;
    margin-right: 15px;
  }

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

  .page-promotions__card-content {
    padding: 20px;
  }

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

  .page-promotions__paragraph,
  .page-promotions__terms-list li p,
  .page-promotions__faq-answer p {
    font-size: 0.95rem;
  }

  .page-promotions__guide-steps {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-promotions__guide-image {
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
  }

  .page-promotions__terms-list,
  .page-promotions__faq-list {
    padding: 0 15px;
  }

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

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

  /* Mobile image 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__guide-section,
  .page-promotions__terms-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section,
  .page-promotions__introduction-section {
    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; /* body handles --header-offset */
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__hero-content {
    padding-left: 15px;
    padding-right: 15px;
    width: calc(100% - 30px);
  }

  .page-promotions__card .page-promotions__btn-secondary {
    width: auto !important; /* Allow multiple buttons in card to wrap */
    margin-bottom: 0;
  }

  .page-promotions__card-content a {
    display: block;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 10px;
  }

  .page-promotions__card-content a:last-child {
    margin-bottom: 0;
  }

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

  .page-promotions__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}