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

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

.page-promotions__section {
  padding: 80px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: var(--winbet-bg-main);
  color: var(--winbet-text-main);
}

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

.page-promotions__section-title {
  font-size: clamp(2em, 4vw, 3.2em);
  color: var(--winbet-gold);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding as body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 4em);
  color: var(--winbet-gold);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__intro-text {
  font-size: 1.2em;
  color: var(--winbet-text-main);
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid var(--winbet-glow);
  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);
  filter: brightness(1.1);
}

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

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

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(42, 209, 111, 0.3);
}

.page-promotions__btn-small:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

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

.page-promotions__card {
  background-color: var(--winbet-bg-card);
  border: 1px solid var(--winbet-border);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--winbet-text-main);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 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.4em;
  color: var(--winbet-gold);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-title a {
  color: var(--winbet-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: var(--winbet-glow);
}

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

/* How to Claim Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-card {
  text-align: center;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-number {
  font-size: 2.5em;
  color: var(--winbet-glow);
  font-weight: bold;
  margin-bottom: 15px;
  background-color: var(--winbet-deep-green);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--winbet-glow);
}

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

.page-promotions__step-text {
  color: var(--winbet-text-secondary);
  margin-bottom: 20px;
}

/* Terms Section */
.page-promotions__terms-content {
  text-align: left;
  background-color: var(--winbet-bg-card);
  border: 1px solid var(--winbet-border);
  border-radius: 10px;
  padding: 30px;
  margin-top: 40px;
}

.page-promotions__sub-title {
  font-size: 1.3em;
  color: var(--winbet-gold);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__text-block {
  color: var(--winbet-text-secondary);
  margin-bottom: 15px;
}

/* Video Section */
.page-promotions__video-section {
  padding: 60px 20px;
  padding-top: 10px; /* body handles header offset */
}

.page-promotions__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-promotions__video-wrapper .page-promotions__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.page-promotions__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  max-width: 100%; /* Ensures video does not overflow */
  height: auto; /* Maintains aspect ratio */
}

/* Benefits Section */
.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  text-align: left;
}

.page-promotions__list-item {
  background-color: var(--winbet-bg-card);
  border: 1px solid var(--winbet-border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__list-icon {
  font-size: 1.8em;
  color: var(--winbet-glow);
  flex-shrink: 0;
}

.page-promotions__list-title {
  font-size: 1.25em;
  color: var(--winbet-gold);
  margin-bottom: 5px;
  font-weight: bold;
}

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

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

.page-promotions__faq-item {
  background-color: var(--winbet-bg-card);
  border: 1px solid var(--winbet-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;
  cursor: pointer;
  font-size: 1.15em;
  color: var(--winbet-text-main);
  font-weight: bold;
  background-color: var(--winbet-deep-green);
  border-bottom: 1px solid var(--winbet-divider);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--winbet-primary);
}

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

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

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--winbet-text-secondary);
  border-top: 1px solid var(--winbet-divider);
}

.page-promotions__faq-item:not([open]) .page-promotions__faq-answer {
  display: none;
}

/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 20px;
  background-color: var(--winbet-deep-green);
  border-top: 3px solid var(--winbet-glow);
}

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

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

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

  .page-promotions__intro-text,
  .page-promotions__section-description {
    font-size: 1em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__hero-section,
  .page-promotions__video-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

  .page-promotions__promotions-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-promotions__card,
  .page-promotions__step-card,
  .page-promotions__terms-content,
  .page-promotions__faq-item,
  .page-promotions__list-item {
    padding: 20px;
  }

  .page-promotions__card-image,
  .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__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__faq-question {
    font-size: 1em;
  }

  .page-promotions__faq-answer {
    font-size: 0.9em;
  }

  .page-promotions__list-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-promotions__list-icon {
    margin-bottom: 10px;
  }
}