/* style/promotions.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --card-bg: #2A1212;
  --background-main: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
}

.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main-color); /* Assuming body is dark, so light text */
  background-color: var(--background-main);
  line-height: 1.6;
  padding-bottom: 50px; /* Add some space before footer */
}

.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, shared.css handles body padding-top */
  padding-bottom: 60px;
  overflow: hidden;
}

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

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

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image slightly for visual flow */
  background: rgba(20, 12, 12, 0.7); /* Semi-transparent dark background */
  border-radius: 10px;
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.page-promotions__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

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

.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

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

.page-promotions__btn-secondary {
  background: var(--deep-red-color);
  color: var(--text-main-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 10px rgba(126, 13, 13, 0.4);
}

.page-promotions__btn-secondary:hover {
  background: var(--gold-color);
  color: var(--deep-red-color);
  transform: translateY(-2px);
}

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

.page-promotions__introduction-section {
  background-color: var(--background-main);
}

.page-promotions__promotions-grid-section {
  background-color: var(--background-main);
}

.page-promotions__how-to-claim-section {
  background-color: var(--background-main);
}

.page-promotions__terms-section {
  background-color: var(--deep-red-color);
  color: #ffffff;
}

.page-promotions__conclusion-section {
  background-color: var(--deep-red-color);
  color: #ffffff;
}

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

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--gold-color);
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-promotions__section-text {
  font-size: 1.1em;
  color: var(--text-main-color);
  max-width: 900px;
  margin: 0 auto 20px auto;
  line-height: 1.7;
}

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

.page-promotions__promotion-card {
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border-color);
}

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

.page-promotions__card-title {
  font-size: 1.8em;
  color: var(--gold-color);
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-promotions__card-description {
  font-size: 1em;
  color: var(--text-main-color);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
  margin: 0 20px 20px 20px;
  width: auto;
  display: inline-block;
  align-self: flex-start;
}

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

.page-promotions__step-card {
  background: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  border: 1px solid var(--border-color);
  height: 100%;
}

.page-promotions__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure minimum image size */
  min-height: 200px;
}

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

.page-promotions__step-description {
  font-size: 1em;
  color: var(--text-main-color);
}

.page-promotions__cta-buttons--centered {
  margin-top: 50px;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-promotions__terms-item {
  background: var(--deep-red-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__terms-subtitle {
  font-size: 1.6em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__terms-item p {
  font-size: 1em;
  color: #ffffff;
  line-height: 1.6;
}

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

.page-promotions__faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.3em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  background-color: var(--card-bg);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-promotions__faq-question:hover {
  background-color: rgba(42, 18, 18, 0.8);
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Prevent toggle from capturing click on details/summary */
}

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

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

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* Ensure content is visible */
  padding-top: 10px;
}

/* General image sizing */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-promotions__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-promotions__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-promotions__hero-title {
    font-size: 2.2em;
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

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

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-promotions__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: 2em;
    margin-bottom: 20px;
  }

  .page-promotions__section-text {
    font-size: 0.95em;
  }

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

  .page-promotions__promotion-card,
  .page-promotions__step-card {
    padding: 20px;
  }

  .page-promotions__card-image,
  .page-promotions__step-icon {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 200px !important; /* Ensure min size for all images */
    min-height: 200px !important;
  }

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

  .page-promotions__terms-subtitle {
    font-size: 1.3em;
  }

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

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

/* Ensure all images are responsive and do not cause horizontal scroll */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Ensure all containers for images are responsive */
.page-promotions__section,
.page-promotions__card,
.page-promotions__container,
.page-promotions__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__section:not(.page-promotions__hero-section) {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__promotion-card .page-promotions__btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
}