/* style/promotions.css */
/* Core styles based on color palette and contrast requirements */
.page-promotions {
  background-color: var(--background-color, #08160F); /* Dark background */
  color: var(--text-main, #F2FFF6); /* Light text for dark background */
  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;
  overflow: hidden;
  text-align: center;
  padding-bottom: 60px; /* Space below content */
  padding-top: 10px; /* Small top padding for first section */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  max-height: 70vh; /* Limit hero image height */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(17, 39, 27, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  margin-top: calc(70vh - 200px); /* Adjust content position relative to image */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__main-title {
  font-size: clamp(2em, 5vw, 3em); /* Responsive font size */
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff; /* White text for button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 4vw, 2.5em);
  font-weight: 700;
  color: var(--gold, #F2C14E); /* Gold for section titles */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-promotions__section-description {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8); /* Secondary text color */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-promotions__current-promotions,
.page-promotions__exclusive-bonuses,
.page-promotions__how-to-claim,
.page-promotions__faq-section,
.page-promotions__call-to-action {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-promotions__promotion-card,
.page-promotions__step-card {
  background-color: var(--card-bg, #11271B); /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-promotions__promotion-card:hover,
.page-promotions__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure min size */
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-promotions__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

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

.page-promotions__card-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--deep-green, #0A4B2C); /* Deep green for card button */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  text-align: center;
  max-width: 100%; /* Ensure button fits in card */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-button:hover {
  background: var(--main-color, #11A84E); /* Main color on hover */
}

.page-promotions__bonus-list {
  margin-top: 40px;
}

.page-promotions__bonus-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color, #2E7A4E);
}

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

.page-promotions__bonus-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: var(--main-color, #11A84E);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: 700;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  background-color: var(--card-bg, #11271B);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(17, 39, 27, 0.8); /* Slightly darker on hover */
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 1000px; /* Arbitrary large value for smooth transition */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−";
}

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

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-promotions__cta-button--primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-promotions__cta-button--secondary {
  background: var(--card-bg, #11271B);
  border: 1px solid var(--main-color, #11A84E);
  color: var(--text-main, #F2FFF6);
}

.page-promotions__cta-button--secondary:hover {
  background: var(--main-color, #11A84E);
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: calc(70vh - 250px);
    padding: 30px 20px;
  }

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

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

@media (max-width: 768px) {
  .page-promotions {
    font-size: 15px;
  }

  .page-promotions__hero-image {
    max-height: 50vh;
  }

  .page-promotions__hero-content {
    margin-top: calc(50vh - 150px); /* Adjust for smaller hero image */
    padding: 20px 15px;
  }

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

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

  .page-promotions__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 0.95em;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__current-promotions,
  .page-promotions__exclusive-bonuses,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__call-to-action {
    padding: 40px 15px;
  }

  .page-promotions__promotion-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__card-image {
    height: 200px;
    min-height: 200px;
  }

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

  .page-promotions__card-title {
    font-size: 1.2em;
  }

  .page-promotions__card-text {
    font-size: 0.9em;
  }

  .page-promotions__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-promotions__bonus-item {
    padding: 25px;
  }

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

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

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

  /* Universal image responsive rule for content area */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__hero-section,
  .page-promotions__current-promotions,
  .page-promotions__exclusive-bonuses,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__call-to-action,
  .page-promotions__promotion-card,
  .page-promotions__step-card,
  .page-promotions__bonus-item,
  .page-promotions__faq-item,
  .page-promotions__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

  .page-promotions__card-image {
    min-width: 100% !important;
    min-height: 200px !important; /* Keep min-height for cards */
  }
}

/* Ensure content area image min-width is not violated */
.page-promotions__card-image {
  min-width: 200px;
  min-height: 200px;
}
.page-promotions img:not(.page-promotions__hero-image):not(.page-promotions__card-image) {
  min-width: 200px;
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-promotions img:not(.page-promotions__hero-image):not(.page-promotions__card-image) {
    min-width: unset !important; /* Allow full width images to be smaller than 200px on mobile if they are 100% width */
    min-height: unset !important;
  }
}