/* style/promotions.css */

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

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

.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; /* body already handles padding-top */
  overflow: hidden;
  box-sizing: border-box;
}

.page-promotions__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3; /* Slightly dim the background image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__hero-description {
  font-size: 1.1em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--color-primary);
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 0 0 5px rgba(17, 168, 78, 0.5);
}

.page-promotions__section-description {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

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

.page-promotions__card-text {
  font-size: 0.95em;
  color: var(--color-text-secondary);
  flex-grow: 1;
}

.page-promotions__offers-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__offer-card {
  background-color: var(--color-card-bg);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.page-promotions__offer-header {
  position: relative;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.page-promotions__offer-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.4;
}

.page-promotions__offer-title {
  position: relative;
  z-index: 1;
  font-size: 1.6em;
  color: var(--color-gold);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.7);
}

.page-promotions__offer-body {
  padding: 20px 30px 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__offer-body p {
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-size: 0.95em;
}

.page-promotions__offer-details {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 0.9em;
  flex-grow: 1;
}

.page-promotions__offer-details li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.page-promotions__offer-details li::before {
  content: '✔';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-promotions__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--color-secondary);
  color: var(--color-background-dark);
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-promotions__btn-tertiary {
  background-color: var(--color-deep-green);
  color: var(--color-text-main);
  border: 1px solid var(--color-border);
  font-size: 0.9em;
  padding: 10px 20px;
}

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

.page-promotions__btn-text {
  background: none;
  color: var(--color-gold);
  border: none;
  padding: 0;
  font-size: 0.9em;
  text-align: left;
  margin-top: 10px;
}

.page-promotions__btn-text:hover {
  text-decoration: underline;
  color: var(--color-secondary);
}

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

.page-promotions__game-card {
  background-color: var(--color-card-bg);
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--color-border);
}

.page-promotions__game-title {
  font-size: 1.4em;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-promotions__game-offers {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
  font-size: 0.9em;
  text-align: left;
}

.page-promotions__game-offers li {
  margin-bottom: 5px;
  position: relative;
  padding-left: 20px;
}

.page-promotions__game-offers li::before {
  content: '•';
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-promotions__step-item {
  background-color: var(--color-card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--color-border);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: var(--color-button-gradient);
  color: #ffffff;
  border-radius: 50%;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

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

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background-color: var(--color-card-bg);
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  color: var(--color-text-main);
  position: relative;
  padding-left: 40px;
  border: 1px solid var(--color-border);
}

.page-promotions__terms-list li::before {
  content: '💡';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-deep-green);
  border-radius: 10px;
  user-select: none;
  position: relative;
  list-style: none; /* For details summary */
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
  text-align: left;
  color: var(--color-gold);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--color-secondary);
}

.page-promotions__faq-answer {
  padding: 0 20px 20px;
  color: var(--color-text-secondary);
  text-align: left;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 15px;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 500px !important; /* For JS fallback if not using details */
  padding-top: 15px;
}

/* Final CTA Section */
.page-promotions__cta-final {
  background-color: var(--color-deep-green);
  padding: 80px 20px;
  border-top: 2px solid var(--color-border);
}

.page-promotions__cta-final .page-promotions__section-title {
  color: var(--color-gold);
}

.page-promotions__cta-final .page-promotions__section-description {
  color: var(--color-text-main);
}

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

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

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

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

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

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

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

  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-tertiary,
  .page-promotions__btn-text,
  .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 !important;
    padding-right: 15px !important;
    margin-bottom: 10px; /* Add spacing for stacked buttons */
  }

  .page-promotions__btn-primary:last-child,
  .page-promotions__btn-secondary:last-child,
  .page-promotions__btn-tertiary:last-child,
  .page-promotions__btn-text: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-direction: column !important;
    gap: 10px;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__offer-card,
  .page-promotions__game-card,
  .page-promotions__step-item,
  .page-promotions__faq-item,
  .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;
  }

  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__grid,
  .page-promotions__offers-list,
  .page-promotions__game-grid,
  .page-promotions__steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image,
  .page-promotions__offer-image,
  .page-promotions__game-image {
    height: auto;
    max-height: 200px; /* Limit height on mobile for better flow */
  }

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

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