/* style/promotions.css */

/* Global styles for the promotions page, ensuring dark background and light text for contrast */
.page-promotions {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-promotions__section-title {
  font-size: clamp(2em, 4vw, 2.8em);
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-promotions__section-subtitle {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.6); /* Slightly dim image for text readability, not color change */
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  color: #F2FFF6; /* Custom Text Main */
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em);
  color: #F2FFF6; /* Custom Text Main */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-promotions__description {
  font-size: clamp(1.1em, 2.5vw, 1.3em);
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure minimum button size */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
}

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

.page-promotions__btn-secondary {
  background: transparent;
  color: #11A84E; /* Main color for text */
  border: 2px solid #11A84E; /* Custom Main Color */
}

.page-promotions__btn-secondary:hover {
  background: #11A84E; /* Main color as background */
  color: #F2FFF6; /* Custom Text Main */
}

.page-promotions__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  border: none;
  min-width: unset;
}

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

/* Featured Promotions */
.page-promotions__featured-promotions {
  padding: 80px 0;
}

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

.page-promotions__promotion-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 12px;
  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;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-promotions__card-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__card-title a {
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
}

.page-promotions__card-title a:hover {
  color: #57E38D; /* Custom Glow */
}

.page-promotions__card-text {
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotion Types */
.page-promotions__promotion-types {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
}

.page-promotions__type-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-promotions__type-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-promotions__type-title {
  font-size: 1.4em;
  color: #57E38D; /* Custom Glow */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__type-description {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

/* How to Claim */
.page-promotions__how-to-claim {
  padding: 80px 0;
}

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

.page-promotions__step-card {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  padding-top: 70px; /* Space for step number */
}

.page-promotions__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  border: 3px solid #08160F; /* Match background */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 1.5em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-description {
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 0.95em;
}

.page-promotions__step-description a {
  color: #57E38D; /* Custom Glow */
  text-decoration: none;
}

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

.page-promotions__cta-bottom {
  text-align: center;
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
}

.page-promotions__text-block {
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 20px;
  font-size: 1.05em;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 0;
}

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

.page-promotions__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-promotions__faq-item summary {
  list-style: none; /* Hide default marker */
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Lighter hover for border color */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5em;
  color: #57E38D; /* Custom Glow */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Custom Text Secondary */
  font-size: 1em;
}

/* Final CTA */
.page-promotions__final-cta {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-promotions__hero-image {
    height: 600px;
  }
  .page-promotions__promotions-grid,
  .page-promotions__type-list,
  .page-promotions__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for internal spacing */
  }

  .page-promotions__hero-image {
    height: 400px;
  }

  .page-promotions__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
  }

  .page-promotions__description {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

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

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

  .page-promotions__section-subtitle {
    font-size: clamp(0.9em, 3.5vw, 1.1em);
  }

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

  .page-promotions__promotion-card,
  .page-promotions__type-item,
  .page-promotions__step-card,
  .page-promotions__faq-item,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

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

  .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; /* small top padding for mobile */
  }

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

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

@media (max-width: 480px) {
  .page-promotions__hero-image {
    height: 300px;
  }
  .page-promotions__step-card {
    padding-top: 60px;
  }
  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
}