/* style/promotions.css */

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

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main); /* Dark background, so light text */
  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: 60px 0;
  text-align: center;
}

.page-promotions__section-title,
.page-promotions__cta-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.4);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, use small decorative padding here */
  overflow: hidden;
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency for content readability */
  border-radius: 10px;
  margin-top: -80px; /* Overlap slightly with image for visual appeal */
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px var(--page-promotions-glow);
}

.page-promotions__description {
  font-size: 1.2rem;
  color: var(--page-promotions-text-main);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background: var(--page-promotions-btn-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-promotions__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

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

.page-promotions__btn-secondary:hover {
  background: var(--page-promotions-glow);
  color: var(--page-promotions-bg);
  transform: translateY(-3px);
}

/* Card Grid */
.page-promotions__card-grid,
.page-promotions__steps-grid,
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

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

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

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

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

.page-promotions__card .page-promotions__btn-secondary {
  margin-left: 0;
  margin-top: auto; /* Push button to bottom */
}

/* Guide Section Steps */
.page-promotions__step-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  color: var(--page-promotions-text-main);
}

.page-promotions__step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  text-shadow: 0 0 10px var(--page-promotions-glow);
}

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
}

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

.page-promotions__step-item .page-promotions__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
}

.page-promotions__terms-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  color: var(--page-promotions-text-main);
}

.page-promotions__terms-sub-title {
  font-size: 1.4rem;
  color: var(--page-promotions-gold);
  margin-bottom: 10px;
}

.page-promotions__terms-item p {
  font-size: 1rem;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__terms-section .page-promotions__btn-secondary {
  margin-top: 30px;
  margin-left: 0;
}

/* Why Choose Section */
.page-promotions__why-choose-section {
  background-color: var(--page-promotions-deep-green);
  padding: 80px 0;
}

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

.page-promotions__feature-item {
  background-color: rgba(17, 39, 27, 0.7); /* Card BG with transparency */
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: var(--page-promotions-text-main);
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.page-promotions__feature-title {
  font-size: 1.5rem;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 1rem;
  color: var(--page-promotions-text-secondary);
}

.page-promotions__why-choose-section .page-promotions__btn-primary {
  margin-top: 40px;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--page-promotions-text-main);
  position: relative;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  color: var(--page-promotions-gold);
  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(--page-promotions-text-secondary);
  line-height: 1.6;
}

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

.page-promotions__faq-section .page-promotions__btn-primary {
  margin-top: 40px;
}

/* CTA Section at bottom */
.page-promotions__cta-section {
  padding: 80px 0;
  background: var(--page-promotions-deep-green);
}

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

/* General image styling */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    margin-top: -40px;
  }
  .page-promotions__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__section-title,
  .page-promotions__cta-title {
    font-size: 2rem;
  }
  .page-promotions__main-title {
    font-size: 2.8rem;
  }
  .page-promotions__description {
    font-size: 1rem;
  }
  .page-promotions__hero-content {
    padding: 20px;
    margin-top: -20px;
  }
  .page-promotions__card-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 12px 20px;
    font-size: 1rem;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-item,
  .page-promotions__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }
  /* Ensure buttons and their containers are responsive */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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;
  }
}