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

.page-promotions {
  background-color: var(--eubet-background);
  color: var(--eubet-text-main);
  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;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height of the image wrapper */
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative; /* Position relative to allow z-index */
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image slightly without overlaying text */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__main-title {
  color: var(--eubet-gold);
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  /* No fixed font-size, rely on clamp for responsiveness if needed, otherwise default browser scaling */
}

.page-promotions__subtitle {
  color: var(--eubet-text-secondary);
  font-size: 1.1em;
  margin-bottom: 30px;
}

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

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

.page-promotions__btn-primary {
  background: var(--eubet-button-gradient);
  color: var(--eubet-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-promotions__btn-secondary:hover {
  background: var(--eubet-green-light);
  color: var(--eubet-background);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-promotions__introduction-section,
.page-promotions__featured-offers-section,
.page-promotions__how-to-claim-section,
.page-promotions__terms-conditions-section,
.page-promotions__faq-section,
.page-promotions__conclusion-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--eubet-divider);
}

.page-promotions__introduction-section:last-of-type,
.page-promotions__conclusion-section {
  border-bottom: none;
}

.page-promotions__section-title {
  color: var(--eubet-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
}

.page-promotions__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--eubet-green-light);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-promotions__text-block {
  color: var(--eubet-text-secondary);
  margin-bottom: 20px;
  text-align: justify;
}

.page-promotions__text-block a {
  color: var(--eubet-green-light);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__text-block a:hover {
  text-decoration: underline;
}

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

.page-promotions__offer-card {
  background-color: var(--eubet-card-bg);
  border-radius: 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--eubet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__card-title {
  color: var(--eubet-green-light);
  font-weight: bold;
  margin-bottom: 15px;
}

.page-promotions__card-description {
  color: var(--eubet-text-secondary);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-promotions__card-button {
  background: var(--eubet-button-gradient);
  color: var(--eubet-text-main);
  border: none;
  margin-top: auto; /* Push button to bottom */
  width: 100%;
}

.page-promotions__card-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.6);
}

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

/* How To Claim Steps */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-promotions__step-item {
  background-color: var(--eubet-card-bg);
  border-radius: 15px;
  padding: 30px;
  position: relative;
  border: 1px solid var(--eubet-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-promotions__step-item::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: -15px;
  left: 20px;
  background: var(--eubet-green-light);
  color: var(--eubet-background);
  font-size: 1.8em;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(34, 199, 104, 0.4);
}

.page-promotions__step-title {
  color: var(--eubet-green-light);
  margin-bottom: 15px;
  margin-top: 10px;
  font-weight: bold;
}

.page-promotions__step-item p {
  color: var(--eubet-text-secondary);
}

/* Terms and Conditions */
.page-promotions__terms-list {
  list-style: disc;
  color: var(--eubet-text-secondary);
  padding-left: 25px;
}

.page-promotions__term-item {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  color: var(--eubet-text-main);
  font-weight: bold;
  cursor: pointer;
  background-color: var(--eubet-deep-green);
  border-bottom: 1px solid var(--eubet-divider);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #0c5a38;
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--eubet-green-light);
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  color: var(--eubet-text-secondary);
}

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

.page-promotions__faq-answer a {
  color: var(--eubet-green-light);
  text-decoration: none;
  font-weight: bold;
}

.page-promotions__faq-answer a:hover {
  text-decoration: underline;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
  text-align: center;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-promotions__offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-promotions__steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .page-promotions__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
    width: 100%;
  }

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

  .page-promotions__introduction-section,
  .page-promotions__featured-offers-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 1.5em;
    margin-bottom: 30px;
  }

  .page-promotions__container {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__offer-card,
  .page-promotions__step-item,
  .page-promotions__faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 20px;
  }

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

  .page-promotions__step-item::before {
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
  }

  .page-promotions__step-title {
    margin-top: 20px;
  }

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

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-content {
    margin-top: -80px;
  }

  .page-promotions__main-title {
    font-size: 1.5em;
  }

  .page-promotions__subtitle {
    font-size: 0.9em;
  }

  .page-promotions__section-title {
    font-size: 1.3em;
  }
}