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

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

/* 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, body handles header offset */
  background-color: var(--xoso1234-deep-green);
  overflow: hidden;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-promotions__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: bold;
  color: var(--xoso1234-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions__hero-description {
  font-size: 1.15rem;
  color: var(--xoso1234-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-promotions__btn-primary {
  background: var(--xoso1234-button-gradient);
  color: var(--xoso1234-text-main);
  border: 2px solid transparent;
  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(--xoso1234-primary-color);
  border: 2px solid var(--xoso1234-primary-color);
}

.page-promotions__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  transform: translateY(-3px);
}

/* General Section Styling */
.page-promotions__section {
  padding: 80px 20px;
  background-color: var(--xoso1234-background);
  color: var(--xoso1234-text-main);
}

.page-promotions__section:nth-of-type(odd) {
  background-color: var(--xoso1234-deep-green);
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--xoso1234-gold-color);
  text-align: center;
  margin-bottom: 25px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-promotions__section-description {
  font-size: 1.05rem;
  color: var(--xoso1234-text-secondary);
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promotions__card-title {
  font-size: 1.5rem;
  color: var(--xoso1234-primary-color);
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(17, 168, 78, 0.3);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-promotions__card p {
  color: var(--xoso1234-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-button {
  background: var(--xoso1234-button-gradient);
  color: var(--xoso1234-text-main);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

/* Guide Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--xoso1234-gold-color);
  margin-bottom: 15px;
  background: rgba(242, 193, 78, 0.1);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--xoso1234-gold-color);
}

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

.page-promotions__step-card p {
  color: var(--xoso1234-text-secondary);
}

.page-promotions__step-card a {
  color: var(--xoso1234-primary-color);
  text-decoration: underline;
}

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

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background-color: var(--xoso1234-card-bg);
  border: 1px solid var(--xoso1234-divider-color);
  border-radius: 8px;
  padding: 18px 25px;
  margin-bottom: 15px;
  color: var(--xoso1234-text-secondary);
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
}

.page-promotions__terms-list li::before {
  content: '✓';
  color: var(--xoso1234-primary-color);
  font-weight: bold;
  margin-right: 15px;
  font-size: 1.2rem;
  line-height: 1;
}

/* Why Choose Section */
.page-promotions__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

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

.page-promotions__feature-title {
  font-size: 1.4rem;
  color: var(--xoso1234-gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 5px rgba(242, 193, 78, 0.3);
}

.page-promotions__feature-item p {
  color: var(--xoso1234-text-secondary);
}

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

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

.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(--xoso1234-text-main);
  cursor: pointer;
  background-color: var(--xoso1234-deep-green);
  border-bottom: 1px solid var(--xoso1234-divider-color);
  list-style: none; /* For details summary */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  color: var(--xoso1234-primary-color);
}

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--xoso1234-gold-color);
  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;
  font-size: 1rem;
  color: var(--xoso1234-text-secondary);
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  padding-bottom: 80px;
}

.page-promotions__conclusion-section .page-promotions__section-description {
  margin-bottom: 40px;
}

/* Links in content */
.page-promotions p a, .page-promotions li a {
  color: var(--xoso1234-primary-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-promotions p a:hover, .page-promotions li a:hover {
  color: var(--xoso1234-gold-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-promotions__section {
    padding: 60px 15px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-promotions__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-promotions__hero-description {
    font-size: 1rem;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-promotions__section {
    padding: 40px 10px;
  }
  .page-promotions__container {
    padding: 0 10px;
  }
  .page-promotions__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 20px;
  }
  .page-promotions__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-promotions__card-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__card-image {
    height: 160px;
  }
  .page-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-promotions__terms-list li,
  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1.05rem;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Mobile image and container responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important; /* Added for explicit width control */
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__hero-image-wrapper,
  .page-promotions__card,
  .page-promotions__step-card,
  .page-promotions__feature-item,
  .page-promotions__faq-item,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__card-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-image-wrapper { padding: 0; }
  .page-promotions__card-button { padding-left: 10px; padding-right: 10px; }
}