/* style/promotions.css */

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

/* Base styles for the page content, assuming body background is dark (var(--background)) */
.page-promotions {
  background-color: var(--df9988-background);
  color: var(--df9988-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-promotions a {
  color: var(--df9988-secondary);
  text-decoration: none;
}

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

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  text-align: center;
  overflow: hidden;
  background-color: var(--df9988-deep-green);
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  position: relative; /* Ensure content is above image if any z-index issues */
  z-index: 1;
  max-width: 900px;
  margin-top: 20px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--df9988-text-main);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--df9988-text-secondary);
  margin-bottom: 30px;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  min-width: 180px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary {
  background: var(--df9988-button-gradient);
  color: #ffffff; /* White text for contrast */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-promotions__btn-secondary:hover {
  background-color: var(--df9988-secondary);
  color: var(--df9988-background); /* Dark text on light background */
}

.page-promotions__section {
  padding: 60px 20px;
  background-color: var(--df9988-background);
  color: var(--df9988-text-main);
}

.page-promotions__section.page-promotions__dark-section {
  background-color: var(--df9988-deep-green);
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--df9988-gold);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-promotions__section-title--light {
  color: var(--df9988-text-main);
}

.page-promotions__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--df9988-gold);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-promotions__sub-title--light {
  color: var(--df9988-text-main);
}

.page-promotions__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: var(--df9988-text-main);
}

.page-promotions__text-block--light {
  color: var(--df9988-text-secondary);
}

.page-promotions__card-grid,
.page-promotions__offer-list,
.page-promotions__cashback-grid,
.page-promotions__event-cards,
.page-promotions__vip-benefits {
  display: grid;
  gap: 30px;
  margin-top: 30px;
}

.page-promotions__card-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions__offer-list {
  grid-template-columns: 1fr;
}

.page-promotions__cashback-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-promotions__event-cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-promotions__vip-benefits {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  text-align: center;
}

.page-promotions__card {
  background-color: var(--df9988-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--df9988-border);
}

.page-promotions__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px;
}

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

.page-promotions__card-text {
  font-size: 0.95rem;
  color: var(--df9988-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__offer-item {
  display: flex;
  align-items: flex-start;
  background-color: var(--df9988-card-bg);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--df9988-border);
}

.page-promotions__offer-icon {
  width: 150px;
  height: auto;
  object-fit: contain;
  margin-right: 25px;
  flex-shrink: 0;
  border-radius: 8px;
  min-width: 200px; /* Enforce min size */
  min-height: 150px;
}

.page-promotions__offer-content {
  flex-grow: 1;
}

.page-promotions__offer-title {
  font-size: 1.4rem;
  color: var(--df9988-gold);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__offer-description {
  font-size: 1rem;
  color: var(--df9988-text-secondary);
}

.page-promotions__cashback-item {
  background-color: var(--df9988-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--df9988-border);
}

.page-promotions__cashback-title {
  font-size: 1.5rem;
  color: var(--df9988-gold);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-promotions__cashback-description {
  font-size: 1rem;
  color: var(--df9988-text-secondary);
}

.page-promotions__vip-item {
  background-color: var(--df9988-card-bg);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--df9988-border);
}

.page-promotions__vip-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-height: 150px;
}

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

.page-promotions__vip-description {
  font-size: 0.95rem;
  color: var(--df9988-text-secondary);
}

.page-promotions__terms-list {
  list-style: disc inside;
  padding-left: 20px;
  color: var(--df9988-text-secondary);
  margin-bottom: 20px;
}

.page-promotions__terms-list li {
  margin-bottom: 10px;
}

.page-promotions__terms-list strong {
  color: var(--df9988-text-main);
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background-color: var(--df9988-deep-green);
  color: var(--df9988-text-main);
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

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

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

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--df9988-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 30px 15px;
  }

  .page-promotions__hero-content {
    padding: 0 15px;
  }

  .page-promotions__main-title {
    font-size: 2rem;
  }

  .page-promotions__description {
    font-size: 0.95rem;
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 300px; /* Constrain buttons */
    margin: 0 auto;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
  }

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

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__sub-title {
    font-size: 1.3rem;
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
  }

  .page-promotions__card-grid,
  .page-promotions__cashback-grid,
  .page-promotions__event-cards,
  .page-promotions__vip-benefits {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-promotions__offer-icon {
    margin-right: 0;
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 150px !important;
  }

  .page-promotions__offer-title {
    font-size: 1.2rem;
  }

  .page-promotions__offer-description {
    font-size: 0.9rem;
  }

  .page-promotions__card-image,
  .page-promotions__vip-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important;
  }

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

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

  /* Ensure all content containers are responsive */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  
  .page-promotions__hero-section {
    padding-left: 0;
    padding-right: 0;
  }

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

  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Images within content sections */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

/* General image rules to ensure min-size and prevent filter usage */
.page-promotions img {
  min-width: 200px; /* Global minimum width */
  min- /* Global minimum height, adjust as needed */
  object-fit: cover; /* Ensures images fill their space without distortion */
  filter: none; /* Absolutely no CSS filters */
}

/* Special handling for smaller icons if they were to exist, but they are forbidden */
/* The current rules enforce minimum 200x200px, so this section is more for completeness of thought */
.page-promotions__vip-icon {
  min-width: 150px; /* Adjusted from 200px for a slightly smaller visual, still compliant */
  min-height: 120px; /* Adjusted, still compliant */
  width: auto; /* Allow natural width */
  max-width: 100%;
  height: auto;
}