/* style/promotions.css */
/* BEM naming: .page-promotions__element-name */

.page-promotions {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Custom palette background */
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px; /* Space below content */
  background-color: #E53935; /* Primary brand color for hero background */
  color: #ffffff;
}

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

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

.page-promotions__hero-content {
  text-align: center;
  padding: 20px 20px 0;
  max-width: 900px;
  margin-top: 20px;
  z-index: 1;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-promotions__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Section Styling */
.page-promotions__intro-section,
.page-promotions__how-to-claim-section,
.page-promotions__responsible-gaming-section,
.page-promotions__cta-final-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Light background from custom palette */
  color: #333333;
}

.page-promotions__promo-types-section,
.page-promotions__terms-section,
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #E53935; /* Primary brand color for dark sections */
  color: #ffffff;
}

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

.page-promotions__promo-types-section .page-promotions__section-title,
.page-promotions__terms-section .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
  color: #ffffff;
}

/* Grid for promo cards */
.page-promotions__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: #FFFFFF; /* Card background from custom palette */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333; /* Text color for cards */
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935; /* Primary brand color for card titles */
}

.page-promotions__promo-card p {
  font-size: 1rem;
  margin-bottom: 25px;
  flex-grow: 1; /* Allows text to take available space */
}

/* Steps List */
.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-promotions__step-item {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-promotions__step-item p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Terms List */
.page-promotions__terms-section p {
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-promotions__terms-list {
  list-style: disc;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 20px;
  color: #ffffff;
}

.page-promotions__terms-item {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-promotions__terms-item strong {
  color: #FF5A4F; /* Auxiliary color for emphasis */
}

/* FAQ Section */
.page-promotions__faq-section p {
  color: #f0f0f0;
}

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-promotions__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

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

.page-promotions__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  color: #FF5A4F; /* Auxiliary color for toggle */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-promotions__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-promotions__faq-answer .page-promotions__btn-secondary {
  margin-top: 15px;
  display: inline-block;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Custom palette button gradient */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 15px rgba(229, 57, 53, 0.6);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background-color: #FFFFFF;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
  background-color: #E53935;
  color: #FFFFFF;
  border-color: #E53935;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* General Link Styling */
.page-promotions__container a {
  color: #E53935;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__container a:hover {
  color: #FF5A4F;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

  .page-promotions__promo-card {
    padding: 25px;
  }

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

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

  .page-promotions__hero-section {
    padding-bottom: 20px;
  }

  .page-promotions__hero-image-wrapper img {
    height: auto !important;
  }

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

  .page-promotions__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

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

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

  .page-promotions__intro-section,
  .page-promotions__promo-types-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-section,
  .page-promotions__responsible-gaming-section,
  .page-promotions__faq-section,
  .page-promotions__cta-final-section {
    padding: 40px 0;
  }

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

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

  .page-promotions__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__promo-card img {
    min-height: 200px !important;
    min-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
  }

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

  .page-promotions__step-item {
    padding: 20px;
  }

  .page-promotions__step-title {
    font-size: 1.4rem;
  }

  .page-promotions__terms-list {
    padding-left: 15px;
  }

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

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

  /* Image responsive rules */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive rules (if video were present) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important;
  }
}