/* style/promotions.css */

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

.page-promotions {
  background-color: var(--page-promotions-bg);
  color: var(--page-promotions-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-top: 0; /* body handles padding-top */
}

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

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--page-promotions-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-promotions__text-block {
  color: var(--page-promotions-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  font-size: 17px;
}

.page-promotions__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--page-promotions-button-gradient);
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

/* Hero Section */
.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-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-promotions__hero-content {
  max-width: 900px;
  padding: 0 20px 60px;
}

.page-promotions__hero-title {
  font-size: clamp(36px, 5vw, 60px);
  color: var(--page-promotions-gold);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-promotions__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--page-promotions-text-main);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
}

/* Promotion Types Grid */
.page-promotions__promotion-types {
  padding: 60px 0;
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__card {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--page-promotions-text-main); /* Ensure light text on dark card */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions__card-title {
  font-size: 24px;
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__card-description {
  font-size: 16px;
  color: var(--page-promotions-text-secondary);
}

/* Detailed Promotions */
.page-promotions__detailed-promotions {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
}

.page-promotions__promotion-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}

.page-promotions__promotion-item:last-child {
  margin-bottom: 0;
}

.page-promotions__promotion-item--reverse {
  flex-direction: row-reverse;
}

.page-promotions__promotion-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  min-height: 200px;
}

.page-promotions__promotion-content {
  flex: 1;
  min-width: 300px;
}

.page-promotions__promotion-title {
  font-size: clamp(22px, 3vw, 32px);
  color: var(--page-promotions-gold);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-promotions__promotion-description {
  font-size: 17px;
  color: var(--page-promotions-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__promotion-meta {
  font-size: 15px;
  color: var(--page-promotions-text-secondary);
  opacity: 0.8;
  margin-bottom: 25px;
}

/* Why Bom88 Promotions */
.page-promotions__why-bom88 {
  padding: 60px 0;
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__benefit-card {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  color: var(--page-promotions-text-main); /* Ensure light text on dark card */
}

.page-promotions__benefit-title {
  font-size: 22px;
  color: var(--page-promotions-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-promotions__benefit-description {
  font-size: 16px;
  color: var(--page-promotions-text-secondary);
}

/* How to Claim */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--page-promotions-bg);
  text-align: center;
}

.page-promotions__step-list {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 800px;
}

.page-promotions__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  width: 100%;
  background-color: var(--page-promotions-card-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--page-promotions-border);
}

.page-promotions__step-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--page-promotions-gold);
  flex-shrink: 0;
  line-height: 1;
}

.page-promotions__step-title {
  font-size: 24px;
  color: var(--page-promotions-gold);
  margin-bottom: 8px;
  font-weight: 700;
}

.page-promotions__step-description {
  font-size: 16px;
  color: var(--page-promotions-text-secondary);
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0 80px;
  background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__faq-item {
  background-color: var(--page-promotions-card-bg);
  border: 1px solid var(--page-promotions-border);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-promotions-text-main); /* Ensure light text on dark card */
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--page-promotions-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none;
  user-select: none;
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--page-promotions-gold);
  margin-left: 15px;
  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: 16px;
  color: var(--page-promotions-text-secondary);
  line-height: 1.7;
}

/* Final CTA Section */
.page-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
  background-color: var(--page-promotions-deep-green);
  border-top: 1px solid var(--page-promotions-divider);
}

.page-promotions__final-cta .page-promotions__section-title {
  margin-bottom: 25px;
}

.page-promotions__final-cta .page-promotions__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.page-promotions__responsible-gaming {
  margin-top: 30px;
  font-size: 14px;
  color: var(--page-promotions-text-secondary);
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    max-height: 60vh;
  }

  .page-promotions__hero-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }

  .page-promotions__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }

  .page-promotions__promotion-item {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .page-promotions__promotion-item--reverse {
    flex-direction: column;
  }

  .page-promotions__promotion-image {
    width: 100%;
    max-width: 600px;
  }

  .page-promotions__promotion-content {
    width: 100%;
  }

  .page-promotions__promotion-title {
    font-size: clamp(20px, 3vw, 28px);
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

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

  .page-promotions__hero-title {
    font-size: clamp(28px, 7vw, 40px);
    margin-bottom: 15px;
  }

  .page-promotions__hero-description {
    font-size: clamp(15px, 3.5vw, 18px);
    margin-bottom: 30px;
  }

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

  .page-promotions__hero-section .page-promotions__cta-button {
    max-width: 300px !important; /* Limit width for hero button */
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-promotions__card,
  .page-promotions__benefit-card {
    padding: 20px;
  }

  .page-promotions__promotion-item {
    margin-bottom: 50px;
  }

  .page-promotions__promotion-image {
    min-width: 200px;
    min-height: 200px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__promotion-title {
    font-size: clamp(20px, 5vw, 26px);
  }

  .page-promotions__step-list {
    margin: 30px auto;
  }

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

  .page-promotions__step-number {
    font-size: 30px;
    margin-bottom: 10px;
  }

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

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

  /* Ensure all image containers are responsive */
  .page-promotions__hero-section,
  .page-promotions__intro-section,
  .page-promotions__promotion-types,
  .page-promotions__detailed-promotions,
  .page-promotions__why-bom88,
  .page-promotions__how-to-claim,
  .page-promotions__faq-section,
  .page-promotions__final-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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